public class WeakStopListener extends java.lang.Object implements EnvironmentListener
Constructor and Description |
---|
WeakStopListener(java.lang.Object resource)
Creates the new stop listener.
|
Modifier and Type | Method and Description |
---|---|
void |
environmentBind(EnvironmentClassLoader loader)
Handles the case where a class loader binds
|
void |
environmentConfigure(EnvironmentClassLoader loader)
Handles the case where a class loader configures
|
void |
environmentStart(EnvironmentClassLoader loader)
Handles the case where a class loader is activated.
|
void |
environmentStop(EnvironmentClassLoader loader)
Handles the case where a class loader is dropped.
|
static java.lang.reflect.Method |
getStopMethod(java.lang.Class cl) |
public WeakStopListener(java.lang.Object resource)
resource
- the resource which needs closingpublic void environmentConfigure(EnvironmentClassLoader loader)
environmentConfigure
in interface EnvironmentListener
public void environmentBind(EnvironmentClassLoader loader)
environmentBind
in interface EnvironmentListener
public void environmentStart(EnvironmentClassLoader loader)
environmentStart
in interface EnvironmentListener
public void environmentStop(EnvironmentClassLoader loader)
environmentStop
in interface EnvironmentListener
public static java.lang.reflect.Method getStopMethod(java.lang.Class cl)