Methods Summary |
---|
private void | dumpInfo(int eventType, com.sun.appserv.server.LifecycleEventContext context, java.util.Properties props)
final String msg = "AMXLifecycleModule: " + eventType + NEWLINE +
"InstallRoot: " + context.getInstallRoot() + NEWLINE +
"InstanceName: " + context.getInstanceName() + NEWLINE +
"CmdLineArgs: " + StringUtil.toString( " ", (Object[])context.getCmdLineArgs() ) + NEWLINE +
"Properties: " + NEWLINE +
MapUtil.toString( props, NEWLINE ) + NEWLINE;
context.log( msg );
|
public void | handleEvent(com.sun.appserv.server.LifecycleEvent event)
final int type = event.getEventType();
final Properties props = (Properties)event.getData();
final LifecycleEventContext context = event.getLifecycleEventContext();
dumpInfo( type, context, props );
if ( type == INIT_EVENT )
{
init( context, props );
}
else if ( type == STARTUP_EVENT )
{
startup( context, props );
}
else if ( type == READY_EVENT )
{
ready( context, props );
}
else if ( type == SHUTDOWN_EVENT )
{
shutdown( context, props );
}
else if ( type == TERMINATION_EVENT )
{
terminate( context, props );
}
else
{
throw new IllegalArgumentException( "eventType: " + type );
}
|
private void | init(com.sun.appserv.server.LifecycleEventContext context, java.util.Properties props)
context.log( "AMXLifecycleModule: init" );
|
private void | ready(com.sun.appserv.server.LifecycleEventContext context, java.util.Properties props)
context.log( "AMXLifecycleModule: ready" );
|
private void | shutdown(com.sun.appserv.server.LifecycleEventContext context, java.util.Properties props)
context.log( "AMXLifecycleModule: shutdown" );
|
private void | startup(com.sun.appserv.server.LifecycleEventContext context, java.util.Properties props)
context.log( "AMXLifecycleModule: startup" );
|
private void | terminate(com.sun.appserv.server.LifecycleEventContext context, java.util.Properties props)
context.log( "AMXLifecycleModule: terminate" );
|