org.objectweb.easybeans.server
Class ServerConfig

java.lang.Object
  extended by org.objectweb.easybeans.server.ServerConfig

public class ServerConfig
extends java.lang.Object

Defines a configuration class that can be used to start the embedded EJB3 server.

Author:
Florent Benoit

Field Summary
private  boolean addEmbeddedComponents
          Add the ejb container components at startup ? (true by default)
private  java.util.List<java.io.File> deployDirectories
          List of path to lookup for deploying modules.
private  boolean directoryScanningEnabled
          Is the Directory scanning activated.
private  java.util.List<java.lang.String> extensionFactories
          EasyBeansConfigurationExtension classname list.
private  boolean initJACC
          Init JACC at startup ?
private static java.lang.String OLD_DEPLOYER
          Old deployer.
private  boolean shouldWait
          Wait at the end of the start.
private  boolean useMBeans
          Use of MBeans.
private  boolean useNaming
          use EasyBeans naming mechanism or one of the embedded server.
 
Constructor Summary
ServerConfig()
          Constructor.
 
Method Summary
 void addDeployDirectory(java.io.File deployDirectory)
          Add a directory to the list of path for loading/looking Java EE modules.
 boolean addEmbeddedComponents()
           
 void addExtensionFactory(java.lang.String extension)
          Adds an EasyBeansConfigurationExtension in the Facory list.
 java.util.List<java.io.File> getDeployDirectories()
           
 java.util.List<java.lang.String> getExtensionFactories()
           
 boolean initJACC()
           
 boolean isDirectoryScanningEnabled()
           
 boolean isUsingMBeans()
          Use or not the MBeans.
 boolean isUsingNaming()
          Use or not the EasyBeans naming system.
 boolean isUsingOldDeployer()
           
 void setAddEmbeddedComponents(boolean addEmbeddedComponents)
          Sets the flag for adding before the startup the core components.
 void setDeployDirectories(java.util.List<java.io.File> deployDirectories)
          Sets the list of path for loading/looking Java EE modules.
 void setDirectoryScanningEnabled(boolean directoryScanningEnabled)
           
 void setInitJACC(boolean initJACC)
          Init or not JACC at startup.
 void setShouldWait(boolean shouldWait)
          Sets if the server will loop at the end of it's startup.
 void setUseMBeans(boolean useMBeans)
          Sets the value for using MBeans.
 void setUseNaming(boolean useNaming)
          Sets the value for using the EasyBeans naming system.
 boolean shouldWait()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

deployDirectories

private java.util.List<java.io.File> deployDirectories
List of path to lookup for deploying modules.


shouldWait

private boolean shouldWait
Wait at the end of the start.


initJACC

private boolean initJACC
Init JACC at startup ?


OLD_DEPLOYER

private static final java.lang.String OLD_DEPLOYER
Old deployer.

See Also:
Constant Field Values

useMBeans

private boolean useMBeans
Use of MBeans.


useNaming

private boolean useNaming
use EasyBeans naming mechanism or one of the embedded server.


extensionFactories

private java.util.List<java.lang.String> extensionFactories
EasyBeansConfigurationExtension classname list.


directoryScanningEnabled

private boolean directoryScanningEnabled
Is the Directory scanning activated.


addEmbeddedComponents

private boolean addEmbeddedComponents
Add the ejb container components at startup ? (true by default)

Constructor Detail

ServerConfig

public ServerConfig()
Constructor.

Method Detail

getDeployDirectories

public java.util.List<java.io.File> getDeployDirectories()
Returns:
the list of path for loading/looking Java EE modules.

setDeployDirectories

public void setDeployDirectories(java.util.List<java.io.File> deployDirectories)
Sets the list of path for loading/looking Java EE modules.

Parameters:
deployDirectories - the list of path for loading/looking Java EE modules.

addDeployDirectory

public void addDeployDirectory(java.io.File deployDirectory)
Add a directory to the list of path for loading/looking Java EE modules.

Parameters:
deployDirectory - a path for loading/looking Java EE modules.

shouldWait

public boolean shouldWait()
Returns:
true if the server should wait when starting embedded server.

setShouldWait

public void setShouldWait(boolean shouldWait)
Sets if the server will loop at the end of it's startup.

Parameters:
shouldWait - true/false

isUsingMBeans

public boolean isUsingMBeans()
Use or not the MBeans.

Returns:
true if this is the case.

setUseMBeans

public void setUseMBeans(boolean useMBeans)
Sets the value for using MBeans.

Parameters:
useMBeans - the boolean value.

isUsingNaming

public boolean isUsingNaming()
Use or not the EasyBeans naming system.

Returns:
true if this is the case.

setUseNaming

public void setUseNaming(boolean useNaming)
Sets the value for using the EasyBeans naming system.

Parameters:
useNaming - the boolean value.

addExtensionFactory

public void addExtensionFactory(java.lang.String extension)
Adds an EasyBeansConfigurationExtension in the Facory list.

Parameters:
extension - the factory FQN.

getExtensionFactories

public java.util.List<java.lang.String> getExtensionFactories()
Returns:
Returns the list of EasyBeansConfigurationExtension.

isDirectoryScanningEnabled

public boolean isDirectoryScanningEnabled()
Returns:
the directoryScanningEnabled

setDirectoryScanningEnabled

public void setDirectoryScanningEnabled(boolean directoryScanningEnabled)
Parameters:
directoryScanningEnabled - the directoryScanningEnabled to set

setInitJACC

public void setInitJACC(boolean initJACC)
Init or not JACC at startup.

Parameters:
initJACC - initialization of JACC provider.

initJACC

public boolean initJACC()
Returns:
true if JACC provider needs to be initialized at startup.

setAddEmbeddedComponents

public void setAddEmbeddedComponents(boolean addEmbeddedComponents)
Sets the flag for adding before the startup the core components.

Parameters:
addEmbeddedComponents - the boolean value

addEmbeddedComponents

public boolean addEmbeddedComponents()
Returns:
true if the core components need to be added before the startup of Embedded.

isUsingOldDeployer

public boolean isUsingOldDeployer()
Returns:
true if the system property is set for using old deployer.