IBM Branch Transformation Toolkit Javadoc

com.ibm.btt.services
Class BTTServiceHolder

java.lang.Object
  extended bycom.ibm.btt.services.BTTServiceProvider
      extended bycom.ibm.btt.services.BTTServiceHolder
Direct Known Subclasses:
BTTServiceHolderEJBBean

public class BTTServiceHolder
extends BTTServiceProvider

The BTTServiceHolder is the entry and contains all service instances API is availble for requester to asscess services. Every deployed server (even Local Java Invocation) for the service architecture has one service holder existed.


Field Summary
static java.lang.String COMPID
           
protected  java.lang.String DEFAULT_SETTING_FILE_PATH
           
protected static java.util.Hashtable dseServices
          Hashtable that keep all service instance
 
Fields inherited from class com.ibm.btt.services.BTTServiceProvider
errorMessages
 
Constructor Summary
BTTServiceHolder()
           
 
Method Summary
static java.util.Hashtable getDseServices()
          Return the cache of the service object
protected  BTTService getService(java.lang.String serviceID)
          Returns a service based on the ID.
 void initialize()
          Initialize all services without initializing BTT externalization.
 void initialize(java.lang.String dseInit)
          Initialize all services which defined in the service defintion file.
static void main(java.lang.String[] args)
           
 java.util.Vector processRequest(java.lang.String serviceType, java.lang.String opName, java.util.Hashtable parts)
          Command interface for user the access a service.
 
Methods inherited from class com.ibm.btt.services.BTTServiceProvider
getErrorMessageResourceBundle, setErrorMessageResourceBundle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COMPID

public static final java.lang.String COMPID
See Also:
Constant Field Values

dseServices

protected static java.util.Hashtable dseServices
Hashtable that keep all service instance


DEFAULT_SETTING_FILE_PATH

protected final java.lang.String DEFAULT_SETTING_FILE_PATH
See Also:
Constant Field Values
Constructor Detail

BTTServiceHolder

public BTTServiceHolder()
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception

initialize

public void initialize(java.lang.String dseInit)
                throws BTTInitializeServiceHolderException,
                       BTTCreateServiceException
Initialize all services which defined in the service defintion file.

Parameters:
dseInit - A String value to specify the file path of dse.ini.
Throws:
BTTInitializeServiceHolderException
BTTCreateServiceException

initialize

public void initialize()
                throws BTTInitializeServiceHolderException,
                       BTTCreateServiceException
Initialize all services without initializing BTT externalization. Usually, this method can only be invoked by Local Java invocation and it is not publish to the other kind of invocation, like EJB and WSIF.

Throws:
BTTInitializeServiceHolderException
BTTCreateServiceException

processRequest

public java.util.Vector processRequest(java.lang.String serviceType,
                                       java.lang.String opName,
                                       java.util.Hashtable parts)
                                throws java.lang.Exception,
                                       BTTCreateServiceException,
                                       BTTInitializeServiceHolderException,
                                       BTTServiceAccessException
Command interface for user the access a service. This method is published each kind of the service invocation.

Parameters:
serviceType - Specify which the service object will be accessed to.
opName - Operation name
parts - Operation parameters
Returns:
Vector The return result. Use Vector is because of the serialization problem
Throws:
java.lang.Exception
BTTCreateServiceException
BTTInitializeServiceHolderException
BTTServiceAccessException

getService

protected BTTService getService(java.lang.String serviceID)
                         throws java.lang.Exception
Returns a service based on the ID. This API is not published to the service requester.

Returns:
BTTService
Throws:
java.lang.Exception

getDseServices

public static java.util.Hashtable getDseServices()
Return the cache of the service object

Returns:
Hashtable

IBM Branch Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2005