A Metaobject
is created for every object at the base level. A different reflective object is associated with a different metaobject.
The metaobject intercepts method calls on the reflective object at the base-level. To change the behavior of the method calls, a subclass of Metaobject
should be defined.
To obtain a metaobject, calls _getMetaobject()
on a reflective object. For example,
Metaobject m = ((Metalevel)reflectiveObject)._getMetaobject();@see javassist.tools.reflect.ClassMetaobject @see javassist.tools.reflect.Metalevel
|
|