org.jboss.bootstrap.impl.base.server
Class AbstractBasicServerInitializer<K extends org.jboss.bootstrap.spi.server.Server<K,T>,T extends org.jboss.bootstrap.spi.config.ServerConfig<T>>

java.lang.Object
  extended by org.jboss.bootstrap.impl.base.server.AbstractBasicServerInitializer<K,T>
All Implemented Interfaces:
org.jboss.bootstrap.spi.server.ServerInitializer<K,T>

public abstract class AbstractBasicServerInitializer<K extends org.jboss.bootstrap.spi.server.Server<K,T>,T extends org.jboss.bootstrap.spi.config.ServerConfig<T>>
extends Object
implements org.jboss.bootstrap.spi.server.ServerInitializer<K,T>

AbstractBasicServerInitializer Simple server initializer which will default the configuration

Version:
$Revision: $
Author:
ALR

Constructor Summary
AbstractBasicServerInitializer()
           
 
Method Summary
 void cleanup(K server)
           
 void initialize(K server)
           
protected  void setSystemProperties(T configuration)
          Sets system properties from the current configuration; may be overridden to set more properties
protected  void setSystemProperty(String key, Boolean value)
          Sets the specified Boolean as a system property with the specified key
protected  void setSystemProperty(String key, Integer value)
          Sets the specified Integer as a system property with the specified key
protected  void setSystemProperty(String key, String value)
          Sets the specified system property key to the specified value.
protected  void setSystemProperty(String key, URL value)
          Sets the specified URL's external form as a system property with the specified key
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractBasicServerInitializer

public AbstractBasicServerInitializer()
Method Detail

initialize

public void initialize(K server)
                throws IllegalArgumentException,
                       IllegalStateException
Specified by:
initialize in interface org.jboss.bootstrap.spi.server.ServerInitializer<K extends org.jboss.bootstrap.spi.server.Server<K,T>,T extends org.jboss.bootstrap.spi.config.ServerConfig<T>>
Throws:
IllegalArgumentException
IllegalStateException

cleanup

public void cleanup(K server)
             throws IllegalArgumentException,
                    IllegalStateException
Specified by:
cleanup in interface org.jboss.bootstrap.spi.server.ServerInitializer<K extends org.jboss.bootstrap.spi.server.Server<K,T>,T extends org.jboss.bootstrap.spi.config.ServerConfig<T>>
Throws:
IllegalArgumentException
IllegalStateException

setSystemProperties

protected void setSystemProperties(T configuration)
Sets system properties from the current configuration; may be overridden to set more properties


setSystemProperty

protected final void setSystemProperty(String key,
                                       URL value)
Sets the specified URL's external form as a system property with the specified key

Parameters:
key -
value -

setSystemProperty

protected final void setSystemProperty(String key,
                                       Integer value)
Sets the specified Integer as a system property with the specified key

Parameters:
key -
value -

setSystemProperty

protected final void setSystemProperty(String key,
                                       Boolean value)
Sets the specified Boolean as a system property with the specified key

Parameters:
key -
value -

setSystemProperty

protected final void setSystemProperty(String key,
                                       String value)
Sets the specified system property key to the specified value. If no value is specified (blank or null) the property will *not* be set.

Parameters:
key - The non-null key
value -


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