Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SiloFactory#data of type of actual "data" to be created in silo #30

Open
normenmueller opened this issue Aug 28, 2015 · 0 comments
Open

Comments

@normenmueller
Copy link
Collaborator

It feels more natural to have data of type of the actual "data" to be created in a silo, rather than of type LocalSilo. The latter can be handled by the framework.

For example, let's have

class TestSiloFactory extends SiloFactory[Int, List[Int]] {
  def data: List[Int] = List(40, 30, 20)
}

rather than

class TestSiloFactory extends SiloFactory[Int, List[Int]] {
  def data = new LocalSilo(List(40, 30, 20))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant