org.springframework.data.persistence
Class AbstractConstructorEntityInstantiator<BACKING_INTERFACE,STATE>
java.lang.Object
org.springframework.data.persistence.AbstractConstructorEntityInstantiator<BACKING_INTERFACE,STATE>
- All Implemented Interfaces:
- EntityInstantiator<BACKING_INTERFACE,STATE>
Deprecated. use EntityInstantiator abstraction instead.
@Deprecated
public abstract class AbstractConstructorEntityInstantiator<BACKING_INTERFACE,STATE>
- extends Object
- implements EntityInstantiator<BACKING_INTERFACE,STATE>
Try for a constructor taking state: failing that, try a no-arg constructor and then setUnderlyingNode().
- Author:
- Rod Johnson
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractConstructorEntityInstantiator
public AbstractConstructorEntityInstantiator()
- Deprecated.
createEntityFromState
public <T extends BACKING_INTERFACE> T createEntityFromState(STATE n,
Class<T> c)
- Deprecated.
- Specified by:
createEntityFromState in interface EntityInstantiator<BACKING_INTERFACE,STATE>
setInstantiators
public void setInstantiators(Map<Class<? extends BACKING_INTERFACE>,StateBackedCreator<? extends BACKING_INTERFACE,STATE>> instantiators)
- Deprecated.
createInstantiator
protected <T extends BACKING_INTERFACE> StateBackedCreator<T,STATE> createInstantiator(Class<T> type,
Class<STATE> stateType)
- Deprecated.
createFailingInstantiator
protected <T extends BACKING_INTERFACE> StateBackedCreator<T,STATE> createFailingInstantiator(Class<STATE> stateType)
- Deprecated.
getFailingMessageForClass
protected String getFailingMessageForClass(Class<?> entityClass,
Class<STATE> stateClass)
- Deprecated.
createWithoutConstructorInvocation
protected <T extends BACKING_INTERFACE> StateBackedCreator<T,STATE> createWithoutConstructorInvocation(Class<T> type,
Class<STATE> stateType)
- Deprecated.
getNoArgConstructor
protected <T extends BACKING_INTERFACE> Constructor<T> getNoArgConstructor(Class<T> type)
- Deprecated.
stateTakingConstructorInstantiator
protected <T extends BACKING_INTERFACE> StateBackedCreator<T,STATE> stateTakingConstructorInstantiator(Class<T> type,
Class<STATE> stateType)
- Deprecated.
getDeclaredConstructor
protected <T> Constructor<T> getDeclaredConstructor(Class<T> c)
- Deprecated.
setState
protected abstract void setState(BACKING_INTERFACE entity,
STATE s)
- Deprecated.
- Subclasses must implement to set state
- Parameters:
entity - s -
Copyright © 2012. All Rights Reserved.