com.basistech.rlp.extra
Class RLPEnvironmentHolder

java.lang.Object
  extended by com.basistech.rlp.extra.RLPEnvironmentHolder

public class RLPEnvironmentHolder
extends Object

Creates and manages the one and only instance of RLPEnvironment.


Method Summary
static String getBTRootDirectory()
          A convenient method to return the product root directory, used to initialize the RLPEnvironment object.
static RLPEnvironment getEnvironment()
          Returns the one and only RLPEnvironment object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getEnvironment

public static RLPEnvironment getEnvironment()
                                     throws RLPException
Returns the one and only RLPEnvironment object. On the first call to any method of this class, RLPEnvironment object will be initialized with: It binds RLP log messages to SL4J (Simple Logging Facade for Java). The classpath needs to include the SL4J API JAR (e.g. slf4j-api-1.5.2.jar) and one of the adapter JARs (slf4j-jdk14-1.5.2.jar) at run time.

Returns:
the RLPEnvironment object
Throws:
RLPException

getBTRootDirectory

public static String getBTRootDirectory()
                                 throws RLPException
A convenient method to return the product root directory, used to initialize the RLPEnvironment object.

Returns:
the Basis Technology product installation root directory
Throws:
RLPException


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