|
IBM Branch Transformation Toolkit Javadoc | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
EJB methods are strongly typed and each EJB has it own corresponding access information. In order to provide a generic way to access EJB, invocation architecture is required. This is where the Bean Invoker Pattern fills the hole.
Since invocation logic should be hidden from developers, the Bean Invoker pattern is a good solution. Logic for creating Bean Invoker and bean invocation logic are encapsulated within Bean Invoker. Developers may invoke EJB through a Bean Invoker with a generic interface. The BeanInvoker provides the generic interface for RequestHandler and Automaton. The basic function includes parseRequestData, invoke and processRespondData.
The default behavior of the basic Bean Invoker will be carried in the following steps:
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT
|
Method Summary | |
---|---|
void |
clear()
Clear all relevant data. |
java.lang.Object |
createBeanInvokerProxy()
Create a bean proxy. |
java.lang.Object |
getBeanInvokerProxy()
Get the Invoker Proxy from Invoker |
java.lang.String |
getRequestID()
Get requestID corresponsed with Invoker |
java.util.ResourceBundle |
getResource()
Get Resource informaton |
BTTSystemData |
getSystemData()
Get the SystemData from Invoker |
java.lang.Object |
invoke()
It's the generic entry point launched by Request Handler. |
java.lang.Object |
processRespondData(java.lang.Object ejbResult)
Handler the EJB result, and transfer to client side. |
void |
setBeanInvokerProxy(java.lang.Object ejbObject)
Set the Invoker Proxy to Invoker |
void |
setRequestID(java.lang.String requestID)
Set requestID corresponsed with Invoker |
void |
setResource(java.util.ResourceBundle resource)
Set Resource information to Bean Invoker. |
void |
setSystemData(BTTSystemData systemData)
Set the SystemData to Invoker |
Field Detail |
public static final java.lang.String COPYRIGHT
Method Detail |
public java.lang.Object invoke() throws DSEInvalidRequestException
DSEInvalidRequestException
public void setResource(java.util.ResourceBundle resource) throws DSEObjectNotFoundException
resource
- Invoker Resource Register file
DSEObjectNotFoundException
public java.util.ResourceBundle getResource()
public void clear()
public java.lang.Object createBeanInvokerProxy() throws DSEInvalidRequestException
DSEInvalidRequestException
public void setBeanInvokerProxy(java.lang.Object ejbObject)
ejbObject
- EJB Objectpublic java.lang.Object getBeanInvokerProxy()
public void setSystemData(BTTSystemData systemData)
systemData
- BTT System Datapublic BTTSystemData getSystemData()
public java.lang.Object processRespondData(java.lang.Object ejbResult) throws DSEInvalidRequestException
ejbResult
- EJB execute result
DSEInvalidRequestException
public java.lang.String getRequestID()
public void setRequestID(java.lang.String requestID)
requestID
-
|
IBM Branch Transformation Toolkit Javadoc | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |