|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.datanucleus.enhancer.AbstractImplementationCreator
public abstract class AbstractImplementationCreator
Abstract representation of an implementation creator. Creates implementations of interfaces or abstract classes.
| Field Summary | |
|---|---|
protected EnhancerClassLoader |
loader
ClassLoader for newly defined classes |
protected static org.datanucleus.util.Localiser |
LOCALISER
|
protected org.datanucleus.metadata.MetaDataManager |
metaDataMgr
MetaData manager to use. |
| Constructor Summary | |
|---|---|
AbstractImplementationCreator(org.datanucleus.metadata.MetaDataManager mmgr)
Constructor. |
|
| Method Summary | |
|---|---|
ClassLoader |
getClassLoader()
Accessor for the ClassLoader. |
protected abstract AbstractImplementationGenerator |
getGenerator(org.datanucleus.metadata.AbstractClassMetaData acmd,
String implClassName)
Method to return the generator for the implementation. |
Object |
newInstance(Class cls,
org.datanucleus.ClassLoaderResolver clr)
Method to generate an instance of an interface, abstract class, or concrete PC class. |
protected javax.jdo.spi.PersistenceCapable |
newInstance(org.datanucleus.metadata.ClassMetaData cmd,
org.datanucleus.ClassLoaderResolver clr)
Constructs an implementation for an abstract class and instantiates it. |
protected javax.jdo.spi.PersistenceCapable |
newInstance(org.datanucleus.metadata.InterfaceMetaData imd,
org.datanucleus.ClassLoaderResolver clr)
Constructs an implementation for an interface and instantiates it. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final org.datanucleus.util.Localiser LOCALISER
protected final org.datanucleus.metadata.MetaDataManager metaDataMgr
protected final EnhancerClassLoader loader
| Constructor Detail |
|---|
public AbstractImplementationCreator(org.datanucleus.metadata.MetaDataManager mmgr)
mmgr - MetaData manager| Method Detail |
|---|
public Object newInstance(Class cls,
org.datanucleus.ClassLoaderResolver clr)
newInstance in interface org.datanucleus.ImplementationCreatorcls - The class of the interface, abstract class, or concrete class defined in MetaDataclr - ClassLoader resolver
protected javax.jdo.spi.PersistenceCapable newInstance(org.datanucleus.metadata.InterfaceMetaData imd,
org.datanucleus.ClassLoaderResolver clr)
throws ClassNotFoundException,
InstantiationException,
IllegalAccessException
imd - The MetaData for the interfaceclr - The ClassLoader
ClassNotFoundException
InstantiationException
IllegalAccessException
protected javax.jdo.spi.PersistenceCapable newInstance(org.datanucleus.metadata.ClassMetaData cmd,
org.datanucleus.ClassLoaderResolver clr)
throws ClassNotFoundException,
InstantiationException,
IllegalAccessException
cmd - The MetaData for the abstract classclr - The ClassLoader
ClassNotFoundException
InstantiationException
IllegalAccessException
protected abstract AbstractImplementationGenerator getGenerator(org.datanucleus.metadata.AbstractClassMetaData acmd,
String implClassName)
acmd - MetaData for the class/interface we need an implementation forimplClassName - Name of the implementation class to create
public ClassLoader getClassLoader()
getClassLoader in interface org.datanucleus.ImplementationCreator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||