org.jboss.bootstrap.spi.factory
Class ServerFactory

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

public class ServerFactory
extends Object

ServerFactory Factory of generic Server implementations

Version:
$Revision: $
Author:
ALR

Method Summary
static Server<?,?> createServer(String implClassName)
          Creates a Server from the specified implementation class name, using the Thread Context ClassLoader.
static Server<?,?> createServer(String implClassName, ClassLoader cl)
          Creates a Server 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

createServer

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

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

createServer

public static Server<?,?> createServer(String implClassName,
                                       ClassLoader cl)
                                throws IllegalArgumentException,
                                       Exception
Creates a Server from the specified implementation class name, using the specified ClassLoader. The returned server 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 Server
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 Server.
Exception - If some error occurred in constructing the Server


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