public final class DefaultEntityFactory<E extends Entity> extends AbstractEntityFactory<E>
Constructor and Description |
---|
DefaultEntityFactory(java.lang.Class<E> entityClass)
Creates new instance.
|
Modifier and Type | Method and Description |
---|---|
E |
create(java.lang.Object id)
Creates a new entity with the passed construction argument.
|
protected java.lang.reflect.Constructor<E> |
findConstructor()
Obtains the constructor for the entity class.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
constructor
public DefaultEntityFactory(java.lang.Class<E> entityClass)
public E create(java.lang.Object id)
EntityFactory
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.
protected java.lang.reflect.Constructor<E> findConstructor()
AbstractEntityFactory
findConstructor
in class AbstractEntityFactory<E extends Entity>