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) |
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) |
void |
setMetaClassCreationHandle(MetaClassRegistry.MetaClassCreationHandle handle)
Sets the MetaClassCreationHandle instance that is responsible for constructing instances
|
void 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.