Class PersistenceObjectInstantiationPolicy
- java.lang.Object
-
- org.eclipse.persistence.internal.core.descriptors.CoreInstantiationPolicy
-
- org.eclipse.persistence.internal.descriptors.InstantiationPolicy
-
- org.eclipse.persistence.internal.descriptors.PersistenceObjectInstantiationPolicy
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
public class PersistenceObjectInstantiationPolicy extends InstantiationPolicy
Used with weaving to create "empty" instances without using reflection.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected PersistenceObject
factory
The factory is an instance of the domain class.-
Fields inherited from class org.eclipse.persistence.internal.descriptors.InstantiationPolicy
descriptor, factoryClass, factoryClassName, factoryMethodName, method, methodName
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
PersistenceObjectInstantiationPolicy()
PersistenceObjectInstantiationPolicy(PersistenceObject factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
buildNewInstance()
Build and return a new instance, using the factory-
Methods inherited from class org.eclipse.persistence.internal.descriptors.InstantiationPolicy
buildDefaultConstructor, buildDefaultConstructorFor, buildFactory, buildFactoryDefaultConstructor, buildFactoryUsingDefaultConstructor, buildFactoryUsingStaticMethod, buildMethod, buildNewInstanceUsingDefaultConstructor, buildNewInstanceUsingFactory, clone, convertClassNamesToClasses, getDefaultConstructor, getDescriptor, getFactory, getFactoryClass, getFactoryClassName, getFactoryMethodName, getMethod, getMethodName, initialize, initializeMethod, isUsingDefaultConstructor, setDefaultConstructor, setDescriptor, setFactory, setFactoryClass, setFactoryClassName, setFactoryMethodName, setMethod, setMethodName, toString, useDefaultConstructorInstantiationPolicy, useFactoryInstantiationPolicy, useFactoryInstantiationPolicy, useFactoryInstantiationPolicy, useFactoryInstantiationPolicy, useFactoryInstantiationPolicy, useMethodInstantiationPolicy
-
-
-
-
Field Detail
-
factory
protected PersistenceObject factory
The factory is an instance of the domain class.
-
-
Constructor Detail
-
PersistenceObjectInstantiationPolicy
protected PersistenceObjectInstantiationPolicy()
-
PersistenceObjectInstantiationPolicy
public PersistenceObjectInstantiationPolicy(PersistenceObject factory)
-
-
Method Detail
-
buildNewInstance
public java.lang.Object buildNewInstance()
Build and return a new instance, using the factory- Overrides:
buildNewInstance
in classInstantiationPolicy
-
-