public class MetaClassRegistryChangeEvent extends EventObject
source
Constructor and Description |
---|
MetaClassRegistryChangeEvent(Object source,
Object instance,
Class clazz,
MetaClass oldMetaClass,
MetaClass newMetaClass)
Constructs a new MetaClassRegistryChangeEvent Object
|
Modifier and Type | Method and Description |
---|---|
Class |
getClassToUpdate()
Get the class that is updated.
|
Object |
getInstance()
Returns the instance this event is for.
|
MetaClass |
getNewMetaClass()
Get the new MetaClass
|
MetaClass |
getOldMetaClass()
Get the old MetaClass
|
MetaClassRegistry |
getRegistry()
Get the MetaClassRegistry that originates this change
|
boolean |
isPerInstanceMetaClassChange()
Determines if this event is for a change for a single instance or all instances of the Class.
|
getSource, toString
public MetaClassRegistryChangeEvent(Object source, Object instance, Class clazz, MetaClass oldMetaClass, MetaClass newMetaClass)
source
- The object the event originates at.instance
- Object instance the MetaClass change is on.clazz
- The class that is affected by the registry changeoldMetaClass
- The old MetaClassnewMetaClass
- The new MetaClasspublic Class getClassToUpdate()
public MetaClass getNewMetaClass()
public MetaClass getOldMetaClass()
public boolean isPerInstanceMetaClassChange()
public Object getInstance()
public MetaClassRegistry getRegistry()