org.jboss.bootstrap.spi.mc.config
Class MCServerConfigFactory

java.lang.Object
  extended by org.jboss.bootstrap.spi.mc.config.MCServerConfigFactory

public class MCServerConfigFactory
extends Object

MCServerConfigFactory Factory of MCServerConfig implementations

Version:
$Revision: $
Author:
ALR

Field Summary
static String DEFAULT_MC_SERVER_CONFIG_IMPL_CLASS_NAME
          The FQN of the default implementation class to create
 
Method Summary
static MCServerConfig createServerConfig()
          Creates an MCServerConfig from the default implementation class name DEFAULT_MC_SERVER_CONFIG_IMPL_CLASS_NAME, using the Thread Context ClassLoader.
static MCServerConfig createServerConfig(ClassLoader cl)
          Creates an MCServerConfig from the default implementation class name DEFAULT_MC_SERVER_CONFIG_IMPL_CLASS_NAME, using the specified ClassLoader.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_MC_SERVER_CONFIG_IMPL_CLASS_NAME

public static final String DEFAULT_MC_SERVER_CONFIG_IMPL_CLASS_NAME
The FQN of the default implementation class to create

See Also:
Constant Field Values
Method Detail

createServerConfig

public static MCServerConfig createServerConfig()
Creates an MCServerConfig from the default implementation class name DEFAULT_MC_SERVER_CONFIG_IMPL_CLASS_NAME, using the Thread Context ClassLoader. The returned config will additionally be created using the TCCL.

Returns:
The newly-created config

createServerConfig

public static MCServerConfig createServerConfig(ClassLoader cl)
                                         throws IllegalArgumentException
Creates an MCServerConfig from the default implementation class name DEFAULT_MC_SERVER_CONFIG_IMPL_CLASS_NAME, using the specified ClassLoader. The returned config will additionally be created using the ClassLoader denoted.

Returns:
The newly-created config
Throws:
IllegalArgumentException - If the ClassLoader is null


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