org.jboss.bootstrap.impl.base.config
Class AbstractBasicConfigurationInitializer<T extends org.jboss.bootstrap.spi.config.ServerConfig<T>>

java.lang.Object
  extended by org.jboss.bootstrap.impl.base.config.AbstractBasicConfigurationInitializer<T>
All Implemented Interfaces:
org.jboss.bootstrap.spi.config.ConfigurationInitializer<T>

public abstract class AbstractBasicConfigurationInitializer<T extends org.jboss.bootstrap.spi.config.ServerConfig<T>>
extends Object
implements org.jboss.bootstrap.spi.config.ConfigurationInitializer<T>

AbstractBasicConfigurationInitializer Base for initializing a configuration before its validated and used to run a server

Version:
$Revision: $
Author:
ALR

Field Summary
 
Fields inherited from interface org.jboss.bootstrap.spi.config.ConfigurationInitializer
DEFAULT_VALUE_BOOTSTRAP_NAME
 
Constructor Summary
AbstractBasicConfigurationInitializer()
           
 
Method Summary
protected  void applyPropertyOverrides(T config)
          Sets the values of contracted system/config properties upon the supplied configuration
protected  URL getDefaultBootstrapHome(T config)
          Returns the default bootstrap home
protected  String getDefaultBootstrapName(T config)
          Returns the default bootstrap name
 void initialize(T config)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractBasicConfigurationInitializer

public AbstractBasicConfigurationInitializer()
Method Detail

initialize

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

getDefaultBootstrapName

protected String getDefaultBootstrapName(T config)
Returns the default bootstrap name

Parameters:
config - A configuration which may be used in determining the default value
Returns:

getDefaultBootstrapHome

protected URL getDefaultBootstrapHome(T config)
Returns the default bootstrap home

Parameters:
config - A configuration which may be used in determining the default value
Returns:

applyPropertyOverrides

protected void applyPropertyOverrides(T config)
                               throws IllegalArgumentException
Sets the values of contracted system/config properties upon the supplied configuration

Throws:
IllegalArgumentException - If the config was not specified


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