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(java.lang.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.
|
java.util.Iterator |
iterator()
Gets a snapshot of the current constant meta classes and returns it as Iterator.
|
void |
removeMetaClass(java.lang.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(java.lang.Class theClass,
MetaClass theMetaClass)
Adds a metaclass to the registry for the given class
|
void |
setMetaClassCreationHandle(MetaClassRegistry.MetaClassCreationHandle handle)
Sets the MetaClassCreationHandle instance that is responsible for constructing instances
|
MetaClass getMetaClass(java.lang.Class theClass)
void setMetaClass(java.lang.Class theClass, MetaClass theMetaClass)
theClass
- The classtheMetaClass
- The MetaClass for theClassvoid removeMetaClass(java.lang.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()
java.util.Iterator iterator()
Note: This Iterator may not used with multiple threads.