public static class MetaClassRegistry.MetaClassCreationHandle
extends java.lang.Object
Constructor and Description |
---|
MetaClassCreationHandle() |
Modifier and Type | Method and Description |
---|---|
MetaClass |
create(java.lang.Class theClass,
MetaClassRegistry registry)
Creates a metaclass implementation for theClass.
|
protected MetaClass |
createNormalMetaClass(java.lang.Class theClass,
MetaClassRegistry registry) |
boolean |
isDisableCustomMetaClassLookup()
Returns whether custom meta classes are disabled.
|
void |
setDisableCustomMetaClassLookup(boolean disableCustomMetaClassLookup)
Set flag saying to disable lookup of custom meta classes
It's enough to call this method only once in your application for handle which was set in to registry
as every new handle will inherit this property
|
public final MetaClass create(java.lang.Class theClass, MetaClassRegistry registry)
theClass
- The class to create a metaclass forregistry
- The metaclass registry the metaclass we be registered in.protected MetaClass createNormalMetaClass(java.lang.Class theClass, MetaClassRegistry registry)
public boolean isDisableCustomMetaClassLookup()
public void setDisableCustomMetaClassLookup(boolean disableCustomMetaClassLookup)
disableCustomMetaClassLookup
- flag saying to disable lookup of custom meta classes