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 dummyDataSourceHSQL
          Start a dummy DS implementation based on HSQL.
private  java.io.File ejb3Directory
          Path where to lookup beans.
private  boolean shouldWait
          Wait at the end of the start.
private  boolean startRegistry
          Launches the registry.
By default, it's true.
private  boolean startTM
          Launches the Transaction manager.
By default, it's true.
private  boolean useMBeans
          Use of MBeans.
 
Constructor Summary
ServerConfig()
           
 
Method Summary
 boolean bindDummyDataSourceHSQL()
           
 java.io.File getEjb3Directory()
           
 boolean isUsingMBeans()
          Use or not the MBeans.
 void setBindDummyDataSourceHSQL(boolean dummyDataSourceHSQL)
          Sets the flag to bind or not a dummy datasource.
 void setEjb3Path(java.lang.String ejb3Path)
          Sets the path forloading/looking beans.
 void setShouldWait(boolean shouldWait)
          Sets if the server will loop at the end of it's startup.
 void setStartRegistry(boolean startRegistry)
          Sets the flag to start or not the registry.
 void setStartTM(boolean startTM)
          Sets the flag to start or not the TM.
 void setUseMBeans(boolean useMBeans)
          Sets the value for using MBeans.
 boolean shouldWait()
           
 boolean startRegistry()
           
 boolean startTM()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ejb3Directory

private java.io.File ejb3Directory
Path where to lookup beans.


startRegistry

private boolean startRegistry
Launches the registry.
By default, it's true.


startTM

private boolean startTM
Launches the Transaction manager.
By default, it's true.


dummyDataSourceHSQL

private boolean dummyDataSourceHSQL
Start a dummy DS implementation based on HSQL.


shouldWait

private boolean shouldWait
Wait at the end of the start.


useMBeans

private boolean useMBeans
Use of MBeans.

Constructor Detail

ServerConfig

public ServerConfig()
Method Detail

getEjb3Directory

public java.io.File getEjb3Directory()
Returns:
the path for loading/looking beans.

setEjb3Path

public void setEjb3Path(java.lang.String ejb3Path)
Sets the path forloading/looking beans.

Parameters:
ejb3Path - the path for loading beans.

startRegistry

public boolean startRegistry()
Returns:
true if the registry need to be started, else false.

startTM

public boolean startTM()
Returns:
true if the transaction manager need to be started, else false.

bindDummyDataSourceHSQL

public boolean bindDummyDataSourceHSQL()
Returns:
true if the dummy datasource will be bind

setStartRegistry

public void setStartRegistry(boolean startRegistry)
Sets the flag to start or not the registry.

Parameters:
startRegistry - true/false.

setStartTM

public void setStartTM(boolean startTM)
Sets the flag to start or not the TM.

Parameters:
startTM - true/false.

setBindDummyDataSourceHSQL

public void setBindDummyDataSourceHSQL(boolean dummyDataSourceHSQL)
Sets the flag to bind or not a dummy datasource.

Parameters:
dummyDataSourceHSQL - true/false.

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.