IBM WebSphere Multichannel 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()
          Clean up all components
static java.lang.String getFullPath(java.lang.String str)
          Given a relative path to btt.xml, this method will return the full path
static java.lang.String getSgmlPath()
          Get btt configuration file path
static boolean isInitialized()
          Get if initialization finished
static void reset()
          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.
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

public static void reset()
                  throws BTTInitException
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

getSgmlPath

public static java.lang.String getSgmlPath()
Get btt configuration file path

Returns:
path of btt configuration file

cleanUp

public static void cleanUp()
                    throws BTTInitException
Clean up all components

Throws:
BTTInitException

isInitialized

public static boolean isInitialized()
Get if initialization finished

Returns:

IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2009