org.datanucleus
Interface ImplementationCreator


public interface ImplementationCreator

Create instances of PersistenceCapable objects. Instantiation of interfaces or abstract classes is impossible, and for this reason concrete classes are generated and and enhanced at runtime by the ImplementationCreator. The generated classes are loaded/defined by an internal ClassLoader to the ImplementationCreator. The internal ClassLoader delegates to the ClassLoaderResolver (loader) the load of user classes.


Method Summary
 java.lang.ClassLoader getClassLoader()
          Accessor for the ClassLoader loading classes created at runtime
 java.lang.Object newInstance(java.lang.Class pc, MetaDataManager mmgr, ClassLoaderResolver loader)
          Constructs an implementation for an interface and instantiates it
 

Method Detail

newInstance

java.lang.Object newInstance(java.lang.Class pc,
                             MetaDataManager mmgr,
                             ClassLoaderResolver loader)
Constructs an implementation for an interface and instantiates it

Parameters:
pc - The class of the interface or abstract class, or concrete class defined in MetaData
mmgr - MetaData Manager
loader - The ClassLoaderResolver for the interface
Returns:
The instance implementing the interface

getClassLoader

java.lang.ClassLoader getClassLoader()
Accessor for the ClassLoader loading classes created at runtime

Returns:
The ClassLoader


Copyright © 2009. All Rights Reserved.