public class WeakCloseListener extends java.lang.Object implements ClassLoaderListener
Constructor and Description |
---|
WeakCloseListener(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.
|
java.lang.String |
toString() |
public WeakCloseListener(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 java.lang.String toString()
toString
in class java.lang.Object