public interface EntityFactory<E extends Entity>
extends java.io.Serializable
Modifier and Type | Method and Description |
---|---|
java.lang.reflect.Constructor<E> |
constructor()
Obtains the constructor used by the factory.
|
E |
create(java.lang.Object constructionArgument)
Creates a new entity with the passed construction argument.
|
E create(java.lang.Object constructionArgument)
Implementations may pass the passed object to the constructor, or use this object (or its properties) as arguments for the methods called after the resulting object is constructed.
java.lang.reflect.Constructor<E> constructor()