public interface MetaClassRegistry
MetaClass| Modifier and Type | Interface and Description | 
|---|---|
static class  | 
MetaClassRegistry.MetaClassCreationHandle
Class used as base for the creation of MetaClass implementations. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
addMetaClassRegistryChangeEventListener(MetaClassRegistryChangeEventListener listener)
Adds a meta class change listener for constant meta classes 
 | 
void | 
addNonRemovableMetaClassRegistryChangeEventListener(MetaClassRegistryChangeEventListener listener)
Adds a meta class change listener for constant meta classes. 
 | 
MetaClass | 
getMetaClass(Class theClass)
The main function of the registry
 If a meta class exists then return it
 otherwise create one, put it in the registry and return it 
 | 
MetaClassRegistry.MetaClassCreationHandle | 
getMetaClassCreationHandler()
Retrieves the MetaClassCreationHandle that is responsible for constructing MetaClass instances 
 | 
MetaClassRegistryChangeEventListener[] | 
getMetaClassRegistryChangeEventListeners()
Returns all registered class change listener for constant meta classes. 
 | 
Iterator | 
iterator()
Gets a snapshot of the current constant meta classes and returns it as Iterator. 
 | 
void | 
removeMetaClass(Class theClass)
Removes a cached MetaClass from the registry 
 | 
void | 
removeMetaClassRegistryChangeEventListener(MetaClassRegistryChangeEventListener listener)
Removes a meta class change listener for constant meta classes 
 | 
void | 
setMetaClass(Class theClass,
            MetaClass theMetaClass)
Adds a metaclass to the registery for the given class 
 | 
void | 
setMetaClassCreationHandle(MetaClassRegistry.MetaClassCreationHandle handle)
Sets the MetaClassCreationHandle instance that is responsible for constructing instances 
 | 
MetaClass getMetaClass(Class theClass)
void setMetaClass(Class theClass, MetaClass theMetaClass)
theClass - The classtheMetaClass - The MetaClass for theClassvoid removeMetaClass(Class theClass)
theClass - The Java class of the MetaClass to removeMetaClassRegistry.MetaClassCreationHandle getMetaClassCreationHandler()
void setMetaClassCreationHandle(MetaClassRegistry.MetaClassCreationHandle handle)
handle - The handle instancevoid addMetaClassRegistryChangeEventListener(MetaClassRegistryChangeEventListener listener)
listener - - the update listenervoid addNonRemovableMetaClassRegistryChangeEventListener(MetaClassRegistryChangeEventListener listener)
listener - - the update listenervoid removeMetaClassRegistryChangeEventListener(MetaClassRegistryChangeEventListener listener)
listener - - the update listenerMetaClassRegistryChangeEventListener[] getMetaClassRegistryChangeEventListeners()
Iterator iterator()
Note: This Iterator may not used with multiple threads.