IBM Branch Transformation Toolkit Javadoc

com.ibm.btt.cs.invoker.base
Class BeanInvokerRegistry

java.lang.Object
  extended bycom.ibm.btt.cs.invoker.base.BeanInvokerRegistry

public class BeanInvokerRegistry
extends java.lang.Object

Information required for creating a Bean Invoker should be stored into a resource bundle. Each type of Bean Invoker should have its corresponding resource bundle. The usage of Local interface or Remote interface is determined at deployment time.

Bean Invoker Registry link a request ID (previously operation ID) to a given resource bundle name. It should be centralized in case of distributed usage. When creation of a Bean Invoker is required, the corresponding resource bundle, that contains information for Bean Invoker, will be retrieved.


Field Summary
static java.lang.String CS_REPLY_FORMAT_NAME
          NOT mandatory.
static java.lang.String EJB_HOME_CLASS_NAME
          NOT mandatory.
static java.lang.String FACTORY
          NOT mandatory.
static java.lang.String IMPL_CLASS
          Implemenetation class name.
protected static java.util.ResourceBundle invokerException
           
protected static java.util.ResourceBundle invokerTrace
          Trace File for NLS
static java.lang.String IS_LOCAL
          NOT mandatory.
static java.lang.String JNDI_NAME
          Used to indicate the invoker EJB jndi name.
static java.lang.String LOCATION
          Used to indicate the invoker EJB location & port
static java.lang.String PROP_FILE
          Indicate Properties mode
static java.lang.String REQUEST_ID
          Request ID
static java.lang.String RESOURCE_BUNDLE_FILE
          Indicate ResourceBundle mode
static java.lang.String RESOURCE_FILE_NAME
          Bean Invoker Registry Mapper file
 
Constructor Summary
BeanInvokerRegistry()
          Constructor for BeanInvokerRegistry.
 
Method Summary
 java.util.ResourceBundle getBeanInvokerFactoryRegister()
          Get the Bean Invoker Facotory Entry ResourceBundle
 java.util.ResourceBundle getBeanInvokerRegister(java.lang.String requestID)
          Get the EJB accessing informaton according to the requestID.
 java.lang.String getBindingType()
           
 java.lang.String getCsReplyFormat()
           
 java.lang.String getFactory()
           
 java.lang.String getHomeClassName()
           
 java.lang.String getInvokerID()
           
 java.lang.String getInvokerImplClassName()
           
 java.lang.String getInvokerImplPackageName()
           
 java.lang.String getInvokerPropertiesFileName()
           
 java.lang.String getJndiName()
           
 java.lang.String getLocation()
           
 boolean isLocal()
           
 void setBindingType(java.lang.String string)
           
 void setCsReplyFormat(java.lang.String string)
           
 void setFactory(java.lang.String string)
           
 void setHomeClassName(java.lang.String string)
           
 void setInvokerID(java.lang.String string)
           
 void setInvokerImplClassName(java.lang.String string)
           
 void setInvokerImplPackageName(java.lang.String string)
           
 void setInvokerPropertiesFileName(java.lang.String string)
           
 void setJndiName(java.lang.String string)
           
 void setLocal(boolean b)
           
 void setLocation(java.lang.String string)
           
 java.lang.String toString()
          Generate Invoker Properties Content
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

RESOURCE_FILE_NAME

public static final java.lang.String RESOURCE_FILE_NAME
Bean Invoker Registry Mapper file

See Also:
Constant Field Values

PROP_FILE

public static final java.lang.String PROP_FILE
Indicate Properties mode

See Also:
Constant Field Values

RESOURCE_BUNDLE_FILE

public static final java.lang.String RESOURCE_BUNDLE_FILE
Indicate ResourceBundle mode

See Also:
Constant Field Values

IMPL_CLASS

public static final java.lang.String IMPL_CLASS
Implemenetation class name. The real Bean Invoker Instance extended by customer.

See Also:
Constant Field Values

JNDI_NAME

public static final java.lang.String JNDI_NAME
Used to indicate the invoker EJB jndi name.

See Also:
Constant Field Values

LOCATION

public static final java.lang.String LOCATION
Used to indicate the invoker EJB location & port

See Also:
Constant Field Values

IS_LOCAL

public static final java.lang.String IS_LOCAL
NOT mandatory. Used to indicate the local EJB or not. The default value is false

See Also:
Constant Field Values

FACTORY

public static final java.lang.String FACTORY
NOT mandatory. Used to indicate the invoker EJB factory. The default value is com.ibm.websphere.naming.WsnInitialContextFactory

See Also:
Constant Field Values

EJB_HOME_CLASS_NAME

public static final java.lang.String EJB_HOME_CLASS_NAME
NOT mandatory. EJB Home Class Name (include package name)

See Also:
Constant Field Values

CS_REPLY_FORMAT_NAME

public static final java.lang.String CS_REPLY_FORMAT_NAME
NOT mandatory. Used to indicate the csReplyFormat name.

See Also:
Constant Field Values

REQUEST_ID

public static final java.lang.String REQUEST_ID
Request ID

See Also:
Constant Field Values

invokerTrace

protected static java.util.ResourceBundle invokerTrace
Trace File for NLS


invokerException

protected static java.util.ResourceBundle invokerException
Constructor Detail

BeanInvokerRegistry

public BeanInvokerRegistry()
Constructor for BeanInvokerRegistry.

Method Detail

getBeanInvokerRegister

public java.util.ResourceBundle getBeanInvokerRegister(java.lang.String requestID)
                                                throws DSEObjectNotFoundException
Get the EJB accessing informaton according to the requestID. The data will be stored into BeanInvokerRegister.

Parameters:
requestID - Request ID used to locate the resource bundle file.
Returns:
ResourceBundle The registry data contents.
Throws:
DSEObjectNotFoundException - if no resource bundle file found or some items in file lost

getBeanInvokerFactoryRegister

public java.util.ResourceBundle getBeanInvokerFactoryRegister()
                                                       throws DSEObjectNotFoundException
Get the Bean Invoker Facotory Entry ResourceBundle

Returns:
ResourceBundle The registry data contents.
Throws:
DSEObjectNotFoundException - if no resource bundle file found

getBindingType

public java.lang.String getBindingType()
Returns:
String

getFactory

public java.lang.String getFactory()
Returns:
String

getHomeClassName

public java.lang.String getHomeClassName()
Returns:
String

getInvokerID

public java.lang.String getInvokerID()
Returns:
String

getInvokerImplClassName

public java.lang.String getInvokerImplClassName()
Returns:
String

getInvokerImplPackageName

public java.lang.String getInvokerImplPackageName()
Returns:
String

getInvokerPropertiesFileName

public java.lang.String getInvokerPropertiesFileName()
Returns:
String

isLocal

public boolean isLocal()
Returns:
String

getJndiName

public java.lang.String getJndiName()
Returns:
String

getLocation

public java.lang.String getLocation()
Returns:
String

setBindingType

public void setBindingType(java.lang.String string)
Parameters:
string -

setFactory

public void setFactory(java.lang.String string)
Parameters:
string -

setHomeClassName

public void setHomeClassName(java.lang.String string)
Parameters:
string -

setInvokerID

public void setInvokerID(java.lang.String string)
Parameters:
string -

setInvokerImplClassName

public void setInvokerImplClassName(java.lang.String string)
Parameters:
string -

setInvokerImplPackageName

public void setInvokerImplPackageName(java.lang.String string)
Parameters:
string -

setInvokerPropertiesFileName

public void setInvokerPropertiesFileName(java.lang.String string)
Parameters:
string -

setLocal

public void setLocal(boolean b)
Parameters:
b -

setJndiName

public void setJndiName(java.lang.String string)
Parameters:
string -

setLocation

public void setLocation(java.lang.String string)
Parameters:
string -

getCsReplyFormat

public java.lang.String getCsReplyFormat()
Returns:
String

setCsReplyFormat

public void setCsReplyFormat(java.lang.String string)
Parameters:
string -

toString

public java.lang.String toString()
Generate Invoker Properties Content


IBM Branch Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2005