org.objectweb.easybeans.deployable
Class DeployerFactory

java.lang.Object
  extended by org.objectweb.easybeans.deployable.DeployerFactory

public final class DeployerFactory
extends java.lang.Object

Allow to get a deployer. When EasyBeans is integrated into JOnAS, it will return a JOnASDeployer, for EasyBeans in standalone mode an EasyBeansDeployer, etc.

Author:
Florent Benoit

Field Summary
private static java.lang.String className
          Name of the class to use for the deployer.
private static java.lang.String DEFAULT_DEPLOYER
          Default deployer.
static java.lang.String DEPLOYER_FACTORY_CLASS_NAME
          Name of the property thats defines the deployer's class.
private static JLog logger
          Logger.
 
Constructor Summary
private DeployerFactory()
          Utility class, no public constructor.
 
Method Summary
static EZBDeployer getDeployer(EZBServer embedded)
          Gets a deployer depending of the property or the class that has been registered.
static void setClassName(java.lang.String classNameStr)
          Set the name of the deployer class to use.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEPLOYER_FACTORY_CLASS_NAME

public static final java.lang.String DEPLOYER_FACTORY_CLASS_NAME
Name of the property thats defines the deployer's class. (optional)


DEFAULT_DEPLOYER

private static final java.lang.String DEFAULT_DEPLOYER
Default deployer.

See Also:
Constant Field Values

logger

private static JLog logger
Logger.


className

private static java.lang.String className
Name of the class to use for the deployer.

Constructor Detail

DeployerFactory

private DeployerFactory()
Utility class, no public constructor.

Method Detail

getDeployer

public static EZBDeployer getDeployer(EZBServer embedded)
                               throws EZBDeployerException
Gets a deployer depending of the property or the class that has been registered.

Parameters:
embedded - the instance of the server.
Returns:
an instance of the deployer.
Throws:
EZBDeployerException - if the deployer cannot be returned.

setClassName

public static void setClassName(java.lang.String classNameStr)
Set the name of the deployer class to use.

Parameters:
classNameStr - the name of the class to use.