DATACMNS-123 - Deprecated types of persistence package.
This commit is contained in:
@@ -8,13 +8,16 @@ import java.util.Map;
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.springframework.util.ClassUtils;
|
||||
|
||||
import sun.reflect.ReflectionFactory;
|
||||
|
||||
/**
|
||||
* Try for a constructor taking state: failing that, try a no-arg constructor and then setUnderlyingNode().
|
||||
*
|
||||
* @deprecated use {@link org.springframework.data.convert.EntityInstantiator} abstraction instead.
|
||||
* @author Rod Johnson
|
||||
*/
|
||||
@Deprecated
|
||||
public abstract class AbstractConstructorEntityInstantiator<BACKING_INTERFACE, STATE> implements
|
||||
EntityInstantiator<BACKING_INTERFACE, STATE> {
|
||||
|
||||
|
||||
@@ -4,8 +4,10 @@ package org.springframework.data.persistence;
|
||||
* 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.
|
||||
*
|
||||
* @deprecated use {@link org.springframework.data.convert.EntityInstantiator} abstraction instead.
|
||||
* @author Rod Johnson
|
||||
*/
|
||||
@Deprecated
|
||||
public interface EntityInstantiator<BACKING_INTERFACE, STATE> {
|
||||
|
||||
/*
|
||||
|
||||
@@ -1,11 +1,15 @@
|
||||
package org.springframework.data.persistence;
|
||||
|
||||
import org.springframework.data.convert.EntityInstantiator;
|
||||
|
||||
/**
|
||||
* encapsulates the instantiator of state-backed classes and populating them with the provided state.
|
||||
* <p/>
|
||||
* Can be implemented and registered with the concrete AbstractConstructorEntityInstantiator to provide non reflection
|
||||
* bases instantiaton for domain classes
|
||||
* @deprecated use {@link EntityInstantiator} abstraction instead.
|
||||
*/
|
||||
@Deprecated
|
||||
public interface StateBackedCreator<T, STATE> {
|
||||
T create(STATE n, Class<T> c) throws Exception;
|
||||
}
|
||||
|
||||
@@ -1,9 +1,13 @@
|
||||
package org.springframework.data.persistence;
|
||||
|
||||
import org.springframework.data.convert.EntityInstantiator;
|
||||
|
||||
/**
|
||||
* @author Michael Hunger
|
||||
* @since 24.09.2010
|
||||
* @deprecated use {@link EntityInstantiator} abstraction instead
|
||||
*/
|
||||
@Deprecated
|
||||
public abstract class StateProvider {
|
||||
private final static ThreadLocal stateHolder = new ThreadLocal();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user