com.caucho.loader
Class StartListener

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

public class StartListener
extends java.lang.Object
implements EnvironmentListener

Waits for the start and stop events.


Constructor Summary
StartListener(java.lang.Object resource)
          Creates the new start listener.
 
Method Summary
 void environmentBind(EnvironmentClassLoader loader)
          Bind callback
 void environmentConfigure(EnvironmentClassLoader loader)
          Configuration callback
 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 getStartMethod(java.lang.Class cl)
           
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

StartListener

public StartListener(java.lang.Object resource)
Creates the new start listener.

Parameters:
resource - the resource which needs start/stop
Method Detail

environmentConfigure

public void environmentConfigure(EnvironmentClassLoader loader)
Configuration callback

Specified by:
environmentConfigure in interface EnvironmentListener

environmentBind

public void environmentBind(EnvironmentClassLoader loader)
Bind callback

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

getStartMethod

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

getStopMethod

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