Spring Data Commons

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

Method Summary
<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.
 

Method Detail

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:

Spring Data Commons

Copyright © 2012. All Rights Reserved.