|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.EventObject | +--com.bea.jvm.event.ClassLoadEvent
when a Class is loaded/unloaded by the JVM.
NOTE: Since the actual class loaded/unloaded is delivered as part of the event, for unloading, this event should be considered as a notification of 'class finalization', and the event receiver will effectively prevent the actual unloading as long as this object is being referred (i.e. during the events lifetime). If you store the event or the java.lang.Class returned by getClassObject() the class will not be actually unloaded, even though it remains unreachable from user code (other than management API user).
Field Summary | |
static int |
CLASS_LOADED
Flag indicating that the class was loaded. |
static int |
CLASS_UNLOADED
Flag indicating that the class was unloaded. |
Fields inherited from class java.util.EventObject |
source |
Constructor Summary | |
ClassLoadEvent(java.lang.Class c,
int eventType)
Constructor. |
Method Summary | |
java.lang.Class |
getClassObject()
Returns the Class (if available) that the event represents. |
int |
getEventType()
Returns either CLASS_LOADED or CLASS_UNLOADED depending on what caused the event. |
Methods inherited from class java.util.EventObject |
getSource, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int CLASS_LOADED
public static final int CLASS_UNLOADED
Constructor Detail |
public ClassLoadEvent(java.lang.Class c, int eventType)
c
- the class that was loaded/unloaded.eventType
- either CLASS_LOADED or CLASS_UNLOADED.Method Detail |
public int getEventType()
CLASS_LOADED
,
CLASS_UNLOADED
public java.lang.Class getClassObject()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |