public static class MetaClassRegistry.MetaClassCreationHandle extends Object
Constructor and Description |
---|
MetaClassRegistry.MetaClassCreationHandle() |
Modifier and Type | Method and Description |
---|---|
MetaClass |
create(Class theClass,
MetaClassRegistry registry)
Creates a metaclass implementation for theClass.
|
protected MetaClass |
createNormalMetaClass(Class theClass,
MetaClassRegistry registry) |
boolean |
isDisableCustomMetaClassLookup()
Returns wether custom metaClasse is 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 MetaClassRegistry.MetaClassCreationHandle()
public final MetaClass create(Class theClass, MetaClassRegistry registry)
theClass
- The class to create a metaclass forregistry
- The metaclass registry the metaclass we be registered in.protected MetaClass createNormalMetaClass(Class theClass, MetaClassRegistry registry)
public boolean isDisableCustomMetaClassLookup()
public void setDisableCustomMetaClassLookup(boolean disableCustomMetaClassLookup)
disableCustomMetaClassLookup
- flag saying to disable lookup of custom meta classes