org.springframework.data.convert
Interface EntityInstantiator
- All Known Implementing Classes:
- ReflectionEntityInstantiator
public interface EntityInstantiator
SPI to abstract strategies to create instances for PersistentEntities
.
- Author:
- Oliver Gierke
createInstance
<T,E extends PersistentEntity<? extends T,P>,P extends PersistentProperty<P>> T createInstance(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:
Copyright © 2012. All Rights Reserved.