org.jboss.bootstrap.spi.factory
Class ServerConfigFactory

java.lang.Object
  extended by org.jboss.bootstrap.spi.factory.ServerConfigFactory

public class ServerConfigFactory
extends Object

ServerConfigFactory Factory of generic ServerConfig implementations

Version:
$Revision: $
Author:
ALR

Method Summary
static ServerConfig<?> createServerConfig(String implClassName)
          Creates a ServerConfig from the specified implementation class name, using the Thread Context ClassLoader.
static ServerConfig<?> createServerConfig(String implClassName, ClassLoader cl)
          Creates a ServerConfig from the specified implementation class name, using the specified ClassLoader.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createServerConfig

public static ServerConfig<?> createServerConfig(String implClassName)
                                          throws IllegalArgumentException,
                                                 Exception
Creates a ServerConfig from the specified implementation class name, using the Thread Context ClassLoader. The returned config will additionally be created using the TCCL.

Parameters:
implClassName - The fully-qualified name of the implementation class
Returns:
The newly-created config
Throws:
IllegalArgumentException - If the implementation class name is null, blank, can not be found on the ClassLoader, or is not assignable to ServerConfig
Exception - If some error occurred in constructing the config

createServerConfig

public static ServerConfig<?> createServerConfig(String implClassName,
                                                 ClassLoader cl)
                                          throws IllegalArgumentException,
                                                 Exception
Creates a ServerConfig from the specified implementation class name, using the specified ClassLoader. The returned config will additionally be created using the ClassLoader denoted.

Parameters:
implClassName - The fully-qualified name of the implementation class
cl - The ClassLoader to use
Returns:
The newly-created config
Throws:
IllegalArgumentException - If the ClassLoader is null, implementation class name is null, blank, can not be found on the ClassLoader, or is not assignable to ServerConfig.
Exception - If some error occurred in constructing the config


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