org.jboss.bootstrap.spi.server
Interface ServerInitializer<K extends Server<K,T>,T extends ServerConfig<T>>


public interface ServerInitializer<K extends Server<K,T>,T extends ServerConfig<T>>

ServerInitializer

Version:
$Revision: $
Author:
ALR

Method Summary
 void cleanup(K server)
          Cleans up any actions taken during the initialization phase in preparation for server shutdown
 void initialize(K server)
          Initializes the specified server.
 

Method Detail

initialize

void initialize(K server)
                throws IllegalArgumentException,
                       IllegalStateException
Initializes the specified server. May perform tasks such as validation and defaulting of an underlying configuration.

Parameters:
server - The server to initialize
Throws:
IllegalArgumentException - If the server was not specified / null, or its configuration is somehow invalid
IllegalStateException - If the server's state is not LifecycleState.PRE_INIT

cleanup

void cleanup(K server)
             throws IllegalArgumentException,
                    IllegalStateException
Cleans up any actions taken during the initialization phase in preparation for server shutdown

Parameters:
server -
Throws:
IllegalArgumentException
IllegalStateException - If the server's state is not LifecycleState.STOPPING


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.