IBM Bank Transformation Toolkit Javadoc

com.ibm.btt.config
Class InitManager

java.lang.Object
  extended by com.ibm.btt.config.InitManager

public class InitManager
extends java.lang.Object

This class is used to initialize all the component of BTT product. It reads components definition in btt.xml file, and call the Initializer of each component one by one.


Constructor Summary
InitManager()
           
 
Method Summary
static void cleanUp()
           
static java.lang.String getFullPath(java.lang.String str)
          Given a relative path to btt.xml, this method will return the full path
static boolean isInitialized()
           
static void reset()
          Deprecated. 
static void reset(java.lang.String initialPath)
          This method initialize all the btt components defined in the btt.xml
protected static void setstrLocation(java.lang.String loc)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InitManager

public InitManager()
Method Detail

setstrLocation

protected static void setstrLocation(java.lang.String loc)

getFullPath

public static java.lang.String getFullPath(java.lang.String str)
Given a relative path to btt.xml, this method will return the full path

Parameters:
str - relative path to btt.xml.
Returns:
full path.

reset

@Deprecated
public static void reset()
                  throws BTTInitException
Deprecated. 

This method can only be invoked in Websphere Application Server environment
In Application Server, you should define the path of the btt.xml file in JNDI name space.
It initializes all the btt components defined in btt.xml file.

Throws:
java.lang.Exception - failed to initialize btt.
BTTInitException

reset

public static void reset(java.lang.String initialPath)
                  throws BTTInitException
This method initialize all the btt components defined in the btt.xml

Parameters:
initialPath - the location of btt.xml file. It should be any string of a URL
for example:
http://mycompany.com/btt.xml
file:///c:\btt.xml
jar:///mypackage/btt.xml if the string starts with jar://, InitManager will find the btt.xml in class-path
Throws:
java.lang.Exception - failed to initialize
BTTInitException

cleanUp

public static void cleanUp()
                    throws BTTInitException
Throws:
BTTInitException

isInitialized

public static boolean isInitialized()

IBM Bank Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2008