com.caucho.loader
Class WeakStopListener

java.lang.Object
  extended by com.caucho.loader.WeakStopListener
All Implemented Interfaces:
EnvironmentListener

public class WeakStopListener
extends java.lang.Object
implements EnvironmentListener

Waits for the stop event and calls a stop() method.


Constructor Summary
WeakStopListener(java.lang.Object resource)
          Creates the new stop listener.
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WeakStopListener

public WeakStopListener(java.lang.Object resource)
Creates the new stop listener.

Parameters:
resource - the resource which needs closing
Method Detail

environmentConfigure

public void environmentConfigure(EnvironmentClassLoader loader)
Handles the case where a class loader configures

Specified by:
environmentConfigure in interface EnvironmentListener

environmentBind

public void environmentBind(EnvironmentClassLoader loader)
Handles the case where a class loader binds

Specified by:
environmentBind in interface EnvironmentListener

environmentStart

public void environmentStart(EnvironmentClassLoader loader)
Handles the case where a class loader is activated.

Specified by:
environmentStart in interface EnvironmentListener

environmentStop

public void environmentStop(EnvironmentClassLoader loader)
Handles the case where a class loader is dropped.

Specified by:
environmentStop in interface EnvironmentListener

getStopMethod

public static java.lang.reflect.Method getStopMethod(java.lang.Class cl)