Interface EntityInstantiator
public interface EntityInstantiator
SPI to abstract strategies to create instances for
PersistentEntity
s.- Since:
- 2.3
- Author:
- Oliver Drotbohm
-
Method Summary
Modifier and TypeMethodDescription<T,
E extends PersistentEntity<? extends T, P>, P extends PersistentProperty<P>>
TcreateInstance
(E entity, ParameterValueProvider<P> provider) Creates a new instance of the given entity using the given source to pull data from.
-
Method Details
-
createInstance
<T,E extends PersistentEntity<? extends T, T createInstanceP>, P extends PersistentProperty<P>> (E entity, ParameterValueProvider<P> provider) Creates a new instance of the given entity using the given source to pull data from.- Parameters:
entity
- will not be null.provider
- will not be null.- Returns:
-