|
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.BeanInvokerImpl
The basic Invoker class is the abstract class which encapsulates some basic functions about EJB accessing and session propagation, for example, generate SystemData, WorkArea lifecycle management (if configured) etc. And the generic method named invoker() will be launched by Request Handler; This invoker method will follow the execution sequence rules to accomplish the EJB invocation.
When a request arrived with a serverOperation ID, the framework judges that at first this request is Processor or not. If it¡¯s not processor, it goes to the Bean Invoker Factory to locate a corresponding Bean Invoker. When the Bean Invoker Factory release a Bean Invoker, the invoker should contains the corresponding Bean Proxy.
And this basic invoker also provides all format/un-format functions, for example, StringFormatter, XMLFormatter, FloatFormatter etc. These each API is corresponded with Formatter/un-Formatter definition in client side. And all the predefined validations APIs are available too, for example, StringValidator, FloatValidator etc.
Field Summary | |
---|---|
protected java.util.Hashtable |
ejbParameters
Used to store the EJB parameters |
Constructor Summary | |
---|---|
BeanInvokerImpl()
Constructor for BeanInvokerImpl. |
Method Summary | |
---|---|
void |
clear()
Since BeanInvoker is request independence, it should be cleared before put into cache. |
abstract java.lang.Object |
createBeanInvokerProxy()
Create a bean proxy. |
abstract java.lang.Object |
executeEJB()
It's the blank method should be overrode by end-user in extended class; In this method, end-user should create the Bean Invoker Proxy (EJBObject) from Proxy Pool or EJB Home Interface; and then hard code the method execution manually. |
java.lang.Object |
getBeanInvokerProxy()
Returns the beanInvokerProxy. |
Context |
getContext()
Returns the context. |
Tokenizer |
getDelimitedTokenizer(java.lang.String requestData)
Returns the DelimitedTokenizer. |
java.lang.Object |
getEjbParameter(java.lang.String key)
Returns the ejb Parameters. |
java.util.Hashtable |
getEjbParameters()
Returns the ejbParameters. |
Tokenizer |
getFixLengthTokenizer(java.lang.String requestData)
Returns the Fix Length Tokenizer. |
BeanInvokerFormatter |
getFormatter()
Returns the formatter. |
protected java.lang.Object |
getHomeObject()
Get EJB Home Object. |
java.lang.String |
getRequestID()
Returns the requestID. |
java.util.ResourceBundle |
getResource()
Returns the resource. |
BTTSystemData |
getSystemData()
Returns the systemData. |
BeanInvokerValidation |
getValidation()
Returns the validation. |
protected BTTXMLFormatter |
getXMLFormatter()
Returns a XML formater |
protected XMLTokenizer |
getXMLTokenizer(java.lang.String aXMLDoc)
Returns a XML tokenizer |
protected BTTXMLUnFormatter |
getXMLUnFormatter()
Returns a default XML unformatter |
protected BTTXMLUnFormatter |
getXMLUnFormatter(java.lang.String aResultObjectControllerType)
Returns a XML unformatter with a given Result Object Controller type |
java.lang.Object |
invoke()
It's the generic entry point launched by Request Handler. |
abstract java.lang.Object |
processRespondData(java.lang.Object ejbResult)
Handler the EJB result, and transfer to client side. |
void |
setBeanInvokerProxy(java.lang.Object beanInvokerProxy)
Sets the beanInvokerProxy. |
void |
setContext(Context context)
Sets the context. |
void |
setEjbParameters(java.util.Hashtable ejbParameters)
Sets the ejbParameters. |
void |
setRequestID(java.lang.String requestID)
Sets the requestID. |
void |
setResource(java.util.ResourceBundle resource)
Sets the resource. |
void |
setSystemData(BTTSystemData systemData)
Sets the systemData. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.util.Hashtable ejbParameters
Constructor Detail |
public BeanInvokerImpl()
Method Detail |
public java.lang.Object invoke() throws DSEInvalidRequestException
invoke
in interface BeanInvoker
DSEInvalidRequestException
public abstract java.lang.Object executeEJB() throws java.lang.Exception
java.lang.Exception
protected java.lang.Object getHomeObject()
public java.lang.Object getEjbParameter(java.lang.String key)
key
- Key in ejb parameters
public void setEjbParameters(java.util.Hashtable ejbParameters)
ejbParameters
- The ejbParameters to setpublic java.util.Hashtable getEjbParameters()
public Context getContext()
public void setContext(Context context)
context
- The context to setpublic abstract java.lang.Object processRespondData(java.lang.Object ejbResult) throws DSEInvalidRequestException
processRespondData
in interface BeanInvoker
ejbResult
- EJB execute result
DSEInvalidRequestException
public void clear()
clear
in interface BeanInvoker
BeanInvoker.clear()
public java.lang.Object getBeanInvokerProxy()
getBeanInvokerProxy
in interface BeanInvoker
public void setBeanInvokerProxy(java.lang.Object beanInvokerProxy)
setBeanInvokerProxy
in interface BeanInvoker
beanInvokerProxy
- The beanInvokerProxy to setpublic abstract java.lang.Object createBeanInvokerProxy() throws DSEInvalidRequestException
createBeanInvokerProxy
in interface BeanInvoker
DSEInvalidRequestException
BeanInvoker.createBeanInvokerProxy()
public BTTSystemData getSystemData()
getSystemData
in interface BeanInvoker
public void setSystemData(BTTSystemData systemData)
setSystemData
in interface BeanInvoker
systemData
- The systemData to setpublic Tokenizer getDelimitedTokenizer(java.lang.String requestData)
requestData
- requestData transferred by request handler
public Tokenizer getFixLengthTokenizer(java.lang.String requestData)
requestData
- requestData transferred by request handler
public java.util.ResourceBundle getResource()
getResource
in interface BeanInvoker
public void setResource(java.util.ResourceBundle resource)
setResource
in interface BeanInvoker
resource
- The resource to setpublic BeanInvokerValidation getValidation()
public BeanInvokerFormatter getFormatter()
protected XMLTokenizer getXMLTokenizer(java.lang.String aXMLDoc)
protected BTTXMLFormatter getXMLFormatter()
protected BTTXMLUnFormatter getXMLUnFormatter()
protected BTTXMLUnFormatter getXMLUnFormatter(java.lang.String aResultObjectControllerType) throws java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.ClassNotFoundException
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.ClassNotFoundException
public java.lang.String getRequestID()
getRequestID
in interface BeanInvoker
public void setRequestID(java.lang.String requestID)
setRequestID
in interface BeanInvoker
requestID
- The requestID to set
|
IBM Branch Transformation Toolkit Javadoc | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |