|
IBM Branch Transformation Toolkit Javadoc | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.btt.cs.invoker.base.BeanInvokerFactory
Bean Invoker Factory is responsible for the Bean Invoker creation. Only one instance of Bean Invoker Factory should be available in a JVM. Since Bean Invokers can be reused by other request, local attribute should not be defined within a Bean Invoker. Otherwise, such data may mix up with other transaction. The EJB Proxy being stored is required to be removed once the Bean Invoker is released. Within Bean Invoker Factory, there should be three main components: Bean Invoker Pool, Bean Proxy Cache and Bean Invoker Registry
Field Summary | |
---|---|
static java.lang.String |
BEAN_INVOKER_CACHE_SWITCH
Bean Invoker Cache switch (true/false. |
static java.lang.String |
BEAN_INVOKER_PROXY_CACHE_SWITCH
Bean Invoker Proxy (EJBObject) Cache switch (true/false. |
Constructor Summary | |
---|---|
BeanInvokerFactory()
|
Method Summary | |
---|---|
static BeanInvoker |
getBeanInvoker(java.lang.String requestID,
BTTSystemData systemData)
Create BeanInvoker Instance according to the RequestID. |
static BeanInvokerRegistry |
getBeanInvokerRegistry()
Get BeanInvokerRegistry instance. |
static boolean |
isRegistedInvoker(java.lang.String requestID)
Estimate the Invoker is existed or not according to the requestID. |
static void |
releaseInvoker(BeanInvoker beanInvoker)
When Request Handler is completed with a Bean Invoker, it should release it and notify the Bean Invoker Factory. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static java.lang.String BEAN_INVOKER_CACHE_SWITCH
public static java.lang.String BEAN_INVOKER_PROXY_CACHE_SWITCH
Constructor Detail |
public BeanInvokerFactory()
Method Detail |
public static BeanInvoker getBeanInvoker(java.lang.String requestID, BTTSystemData systemData) throws DSEObjectNotFoundException, java.lang.ClassNotFoundException, DSEInvalidRequestException
requestID
- requestID associated with ResourceBundle file.systemData
- .
DSEObjectNotFoundException
- No resourcce bundle file found
java.lang.ClassNotFoundException
- No customer defined implemenetation file found
DSEInvalidRequestException
- Create Bean Proxy exceptionpublic static void releaseInvoker(BeanInvoker beanInvoker)
beanInvoker
- Bean Invoker instancepublic static BeanInvokerRegistry getBeanInvokerRegistry()
public static boolean isRegistedInvoker(java.lang.String requestID)
requestID
- Invoker Key
|
IBM Branch Transformation Toolkit Javadoc | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |