public class CloseListener extends java.lang.Object implements ClassLoaderListener
Constructor and Description |
---|
CloseListener(java.lang.Object resource)
Creates the new close listener.
|
Modifier and Type | Method and Description |
---|---|
void |
classLoaderDestroy(DynamicClassLoader loader)
Handles the case where a class loader is dropped.
|
void |
classLoaderInit(DynamicClassLoader loader)
Handles the case where a class loader is activated.
|
static java.lang.reflect.Method |
getDestroyMethod(java.lang.Class cl) |
java.lang.String |
toString() |
public CloseListener(java.lang.Object resource)
resource
- the resource which needs closingpublic void classLoaderInit(DynamicClassLoader loader)
classLoaderInit
in interface ClassLoaderListener
public void classLoaderDestroy(DynamicClassLoader loader)
classLoaderDestroy
in interface ClassLoaderListener
public static java.lang.reflect.Method getDestroyMethod(java.lang.Class cl)
public java.lang.String toString()
toString
in class java.lang.Object