org.jboss.bootstrap.spi.as.server
Class JBossASServerFactory

java.lang.Object
  extended by org.jboss.bootstrap.spi.as.server.JBossASServerFactory

public class JBossASServerFactory
extends Object

JBossASServerFactory Factory of JBossASServer implementations

Version:
$Revision: $
Author:
ALR

Field Summary
static String DEFAULT_AS_SERVER_IMPL_CLASS_NAME
          The FQN of the default server implementation class to create
 
Method Summary
static JBossASServer createServer()
          Creates a JBossASServer from the default implementation class name DEFAULT_AS_SERVER_IMPL_CLASS_NAME, using the Thread Context ClassLoader.
static JBossASServer createServer(ClassLoader cl)
          Creates a JBossASServer from the default implementation class name DEFAULT_AS_SERVER_IMPL_CLASS_NAME, using the specified ClassLoader.
static JBossASServer createServer(String implClassName, ClassLoader cl)
          Creates a JBossASServer from the specified implementation class name using the specified ClassLoader.
static JBossASServer createServerWithDefaultConfiguration()
          Creates a JBossASServer from the default implementation class name DEFAULT_AS_SERVER_IMPL_CLASS_NAME, using the Thread Context ClassLoader.
static JBossASServer createServerWithDefaultConfiguration(ClassLoader cl)
          Creates a JBossASServer from the default implementation class name DEFAULT_AS_SERVER_IMPL_CLASS_NAME, using the specified ClassLoader.
static JBossASServer createServerWithDefaultConfiguration(String implClassName, ClassLoader cl)
          Creates a JBossASServer 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
 

Field Detail

DEFAULT_AS_SERVER_IMPL_CLASS_NAME

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

See Also:
Constant Field Values
Method Detail

createServer

public static JBossASServer createServer()
Creates a JBossASServer from the default implementation class name DEFAULT_AS_SERVER_IMPL_CLASS_NAME, using the Thread Context ClassLoader. The returned server will additionally be created using the TCCL.

Returns:
The newly-created Server

createServerWithDefaultConfiguration

public static JBossASServer createServerWithDefaultConfiguration()
Creates a JBossASServer from the default implementation class name DEFAULT_AS_SERVER_IMPL_CLASS_NAME, using the Thread Context ClassLoader. The returned server will additionally be created using the TCCL. As a convenience, the server will contain a default configuration.

Returns:
The newly-created Server populated with a default configuration

createServer

public static JBossASServer createServer(ClassLoader cl)
                                  throws IllegalArgumentException
Creates a JBossASServer from the default implementation class name DEFAULT_AS_SERVER_IMPL_CLASS_NAME, using the specified ClassLoader. The returned server will additionally be created using the ClassLoader denoted.

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

createServerWithDefaultConfiguration

public static JBossASServer createServerWithDefaultConfiguration(ClassLoader cl)
                                                          throws IllegalArgumentException
Creates a JBossASServer from the default implementation class name DEFAULT_AS_SERVER_IMPL_CLASS_NAME, using the specified ClassLoader. The returned server will additionally be created using the ClassLoader denoted. As a convenience, the server will contain a default configuration.

Returns:
The newly-created Server populated with a default configuration
Throws:
IllegalArgumentException - If the ClassLoader is null

createServer

public static JBossASServer createServer(String implClassName,
                                         ClassLoader cl)
                                  throws IllegalArgumentException,
                                         Exception
Creates a JBossASServer from the specified implementation class name using the specified ClassLoader. The returned server will additionally be created using the ClassLoader denoted.

Returns:
The newly-created Server
Throws:
IllegalArgumentException - If the ClassLoader or server implementation class is null
Exception - If there was an error in creating the Server

createServerWithDefaultConfiguration

public static JBossASServer createServerWithDefaultConfiguration(String implClassName,
                                                                 ClassLoader cl)
                                                          throws IllegalArgumentException,
                                                                 Exception
Creates a JBossASServer from the specified implementation class name using the specified ClassLoader. The returned server will additionally be created using the ClassLoader denoted. As a convenience, the server will contain a default configuration.

Returns:
The newly-created Server populated with a default configuration
Throws:
IllegalArgumentException - If the ClassLoader or server implementation class is null
Exception - If there was an error in creating the Server


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