public class StartListener extends java.lang.Object implements EnvironmentListener
Constructor and Description |
---|
StartListener(java.lang.Object resource)
Creates the new start listener.
|
Modifier and Type | Method and Description |
---|---|
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) |
public StartListener(java.lang.Object resource)
resource
- the resource which needs start/stoppublic 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 getStartMethod(java.lang.Class cl)
public static java.lang.reflect.Method getStopMethod(java.lang.Class cl)