Spring Data Commons

org.springframework.data.persistence
Interface EntityInstantiator<BACKING_INTERFACE,STATE>

All Known Implementing Classes:
AbstractConstructorEntityInstantiator

public interface EntityInstantiator<BACKING_INTERFACE,STATE>

Interface to be implemented by classes that can instantiate and configure entities. The framework must do this when creating objects resulting from finders, even when there may be no no-arg constructor supplied by the user.

Author:
Rod Johnson

Method Summary
<T extends BACKING_INTERFACE>
T
createEntityFromState(STATE s, Class<T> c)
           
 

Method Detail

createEntityFromState

<T extends BACKING_INTERFACE> T createEntityFromState(STATE s,
                                                      Class<T> c)

Spring Data Commons

Copyright © 2011. All Rights Reserved.