com.caucho.loader
Class WeakDestroyListener

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

public class WeakDestroyListener
extends java.lang.Object
implements EnvironmentListener

Waits for the stop event and calls a @PreDestroy


Constructor Summary
WeakDestroyListener(java.lang.reflect.Method preDestroy, java.lang.Object obj)
          Creates the new stop listener.
 
Method Summary
 void environmentBind(EnvironmentClassLoader loader)
          Handles the case where a class loader is bind.
 void environmentConfigure(EnvironmentClassLoader loader)
          Handles the case where a class loader is configured.
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WeakDestroyListener

public WeakDestroyListener(java.lang.reflect.Method preDestroy,
                           java.lang.Object obj)
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 is configured.

Specified by:
environmentConfigure in interface EnvironmentListener

environmentBind

public void environmentBind(EnvironmentClassLoader loader)
Handles the case where a class loader is bind.

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