document creator requirement, see #2131

This commit is contained in:
Roland 2012-05-25 17:55:25 +02:00
parent 0bb72ef692
commit 178c9145fe
5 changed files with 24 additions and 0 deletions

View file

@ -38,6 +38,9 @@ trait Effect {
* A constructor/factory, takes no parameters but creates a new value of type T every call.
*/
trait Creator[T] {
/**
* This method must return a different instance upon every call.
*/
def create(): T
}