com.basistech.rlp
Class RLPEnvironmentBean

java.lang.Object
  extended by com.basistech.rlp.RLPEnvironmentBean

public class RLPEnvironmentBean
extends Object

This class is provided to initialize the RLP Environment in a Spring IoC (or similiar) container. Applications should create bean of this type with scope='singleton' and use it to configure other Basis classes. In all cases, this class must be configured with

 init-method='initialize'
 
For example, a bean might be:
 <bean id='rlp-env' class='com.basistech.rlp.RLPEnvironmentBean' init-method='initialize'>
 <property name='rootBean' ref='basis-root-bean-id'/>
 </bean>
 


Constructor Summary
RLPEnvironmentBean()
          Construct a placeholder; environment, environment definition and root bean are null.
 
Method Summary
 void cleanup()
          Close the environment and release resources.
 RLPEnvironment getEnvironment()
          Retrieve the underlying RLPEnvironment object.
 String getEnvironmentDefinition()
          Retrieve the XML definition for the environment.
 String getRlpLogLevel()
          Retrieve the log level.
 BasisRootBean getRootBean()
          Get the root bean.
 void initialize()
          Initialize the environment from the parameters.
 void setEnvironmentDefinition(String environmentDefinition)
          Set the XML definition for the environment.
 void setRlpLogLevel(String rlpLogLevel)
          Set the log level.
 void setRootBean(BasisRootBean rootBean)
          Set the root bean.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RLPEnvironmentBean

public RLPEnvironmentBean()
Construct a placeholder; environment, environment definition and root bean are null.

Method Detail

initialize

public void initialize()
Initialize the environment from the parameters.


cleanup

public void cleanup()
Close the environment and release resources.


getEnvironment

public RLPEnvironment getEnvironment()
Retrieve the underlying RLPEnvironment object.

Returns:
the environment.

getEnvironmentDefinition

public String getEnvironmentDefinition()
Retrieve the XML definition for the environment.

Returns:
the definition.

setEnvironmentDefinition

public void setEnvironmentDefinition(String environmentDefinition)
Set the XML definition for the environment.

Parameters:
environmentDefinition - the definition.

getRootBean

public BasisRootBean getRootBean()
Get the root bean.

Returns:
the root bean.

setRootBean

public void setRootBean(BasisRootBean rootBean)
Set the root bean.

Parameters:
rootBean - the root bean.

getRlpLogLevel

public String getRlpLogLevel()
Retrieve the log level.

Returns:
the log level.

setRlpLogLevel

public void setRlpLogLevel(String rlpLogLevel)
Set the log level.

Parameters:
rlpLogLevel - log level.


Copyright © 2004-2008 Basis Technology Corporation. All Rights Reserved.