|
IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.btt.base.ContextFactory
public class ContextFactory
This class is the basic repository of data and services. Instances of this class can be linked, or chained, in a tree of contexts, and the instances are capable of navigating over this tree, always in the upper direction. The instances of this class also can be passed as parameters of the format() and unformat() methods of a record format.
Constructor Summary | |
---|---|
ContextFactory()
|
Method Summary | |
---|---|
static Context |
convertToContext(byte[] serializedObj)
Takes the byte array retrieved from the database and returns an object. |
static Context |
createContext()
This constructor creates a local context object without name. |
static Context |
createContext(java.lang.String contextName)
This constructor creates a distributed Context object or a local context according to the value of the parameter isDistributed. |
static Context |
createContext(java.lang.String contextName,
boolean isDistributed)
This constructor creates a distributed Context object or a local context according to the value of the parameter isDistributed. |
static Context |
createContext(java.lang.String aName,
java.lang.String aType,
Context aParent)
Creates a local context without predefined definition and chain to another local or distributed context. |
static Context |
createContext(java.lang.String contextName,
java.lang.String typeName,
Context parentContext,
boolean isDistributed)
If isDistributed = true, create a distributed Context based on a context name, and the following optional params, type name, parent Context. |
static Context |
createContext(java.lang.String aName,
java.lang.String aType,
Context aParent,
KeyedCollection aKeyedCollection)
Creates a local context without predefined definition and chain to another local or distributed context. |
static Context |
createContext(java.lang.String contextName,
java.lang.String typeName,
Context parentContext,
KeyedCollection aKeyedCollection,
boolean isDistributed)
If isDistributed = true, create a distributed Context based on a context name, and the following optional params, type name, parent Context, a KeyedCollection. |
static Context |
createContext(java.lang.String aName,
java.lang.String aType,
KeyedCollection aKeyedCollection)
Creates a local context without predefined definition and chain to another local or distributed context. |
static Context |
currentContext()
Returns the context set as the currentContext from the root. |
static boolean |
getAutoChainToParentContext()
|
static Context |
getContextByInstanceID(java.lang.String anInstanceID)
Returns the distributed context that matches the parameter: instanceID. |
static Context |
getContextNamed(java.lang.String aContextName)
Searches the context tree from the root context for a context named aContextName |
static Vector |
getContextTable()
Get a Vector containing all the instanceIDs in the server side hashtable. |
static CSClientService |
getCSClient()
Obtains the first instance of the CSClient service. |
static CSServerService |
getCSServer()
Returns the instance of CSServer. |
static Externalizer |
getExternalizer()
Gets the externalizer. |
static java.util.Vector |
getIpAddressAndPortForTID(java.lang.String tid)
Returns a vector with two integers: the ipAddress and port that a TID has associated or null if there is no ipAddress and port associated with the passed TID. |
static Context |
getRoot()
Returns the root context of the context tree. |
static boolean |
isRemoteMode()
|
static java.lang.Object |
linkServiceToContext(Context ctx,
Tag aTag)
link the services to the context. |
static void |
reset()
Deletes all context instances. |
static void |
setAutoChainToParentContext(boolean value)
set the flag if to chain to parent context automatically when parent attribute is defined in cotext XML definition |
static void |
setExternalizer(Externalizer anExternalizer)
Sets the externalizer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ContextFactory()
Method Detail |
---|
public static Context createContext()
ContextCreateException
DSEInvalidRequestException
java.lang.ClassNotFoundException
java.lang.NoSuchMethodException
java.lang.SecurityException
public static Context createContext(java.lang.String contextName, boolean isDistributed) throws DSEInvalidRequestException
contextName
- isDistributed
-
DSEInvalidRequestException
ContextCreateException
public static Context createContext(java.lang.String contextName) throws DSEInvalidRequestException
contextName
-
DSEInvalidRequestException
ContextCreateException
public static Context createContext(java.lang.String aName, java.lang.String aType, Context aParent) throws DSEInvalidRequestException
aName
- aType
- aParent
-
DSEInvalidRequestException
public static Context createContext(java.lang.String aName, java.lang.String aType, Context aParent, KeyedCollection aKeyedCollection) throws DSEInvalidRequestException
aName
- aType
- aParent
- aKeyedCollection
-
DSEInvalidRequestException
public static Context createContext(java.lang.String aName, java.lang.String aType, KeyedCollection aKeyedCollection) throws DSEInvalidRequestException
aName
- aType
- aKeyedCollection
-
DSEInvalidRequestException
public static Context createContext(java.lang.String contextName, java.lang.String typeName, Context parentContext, boolean isDistributed) throws DSEInvalidRequestException
contextName
- typeName
- parentContext
- isDistributed
-
DSEInvalidRequestException
public static Context createContext(java.lang.String contextName, java.lang.String typeName, Context parentContext, KeyedCollection aKeyedCollection, boolean isDistributed) throws DSEInvalidRequestException
contextName
- typeName
- parentContext
- aKeyedCollection
- isDistributed
-
DSEInvalidRequestException
public static Vector getContextTable() throws DSEInvalidRequestException
DSEInvalidRequestException
public static Context getContextByInstanceID(java.lang.String anInstanceID) throws DSEInvalidRequestException
anInstanceID
-
DSEInvalidRequestException
public static Context getContextNamed(java.lang.String aContextName) throws DSEInvalidRequestException
aContextName
-
DSEInvalidRequestException
public static Externalizer getExternalizer()
public static Context getRoot() throws DSEInvalidRequestException
DSEInvalidRequestException
DSEInvalidRequestException
public static void reset() throws DSEException
DSEException
public static void setExternalizer(Externalizer anExternalizer)
anExternalizer
- public static Context convertToContext(byte[] serializedObj) throws java.io.IOException, java.lang.ClassNotFoundException
serializedObj
- The Object to rebuild
java.io.IOException
java.lang.ClassNotFoundException
public static void setAutoChainToParentContext(boolean value)
value
- public static boolean getAutoChainToParentContext()
public static java.lang.Object linkServiceToContext(Context ctx, Tag aTag) throws java.io.IOException
ctx
- com.ibm.btt.base.ContextaTag
- com.ibm.btt.base.Tag
java.io.IOException
public static CSClientService getCSClient()
public static Context currentContext()
public static CSServerService getCSServer()
public static java.util.Vector getIpAddressAndPortForTID(java.lang.String tid) throws DSEInvalidRequestException, DSEObjectNotFoundException
tid
- java.lang.String
DSEInvalidRequestException
DSEObjectNotFoundException
public static boolean isRemoteMode()
|
IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |