public class TransValidateCallbackProxy extends Object implements DpTransValidateCallback
DpTransValidateCallback
interface and delegates calls to the
registered callback POJO with annotated methodsConstructor and Description |
---|
TransValidateCallbackProxy(Object backupObject)
Constructor for Callback proxys.
|
Modifier and Type | Method and Description |
---|---|
void |
addActionCapability(TransValidateCBType transValidCBType)
Add action capability from annotated callType used to register
capabilities on the server
|
void |
addActionMethod(String name,
Method method)
Add callback action method to proxy
|
Object |
getBackupObject()
Retrieve the callback POJO
|
static TransValidateCallbackProxy[] |
getTransValidateCallbackProxys(Object obj)
Get array of proxy objects from registered POJO callback.
|
void |
init(DpTrans trans) |
void |
stop(DpTrans trans) |
public TransValidateCallbackProxy(Object backupObject)
backupObject
- registered callback POJOpublic Object getBackupObject()
public void addActionMethod(String name, Method method)
name
- canonical action namemethod
- registered callback methodpublic void addActionCapability(TransValidateCBType transValidCBType)
transValidCBType
- action typepublic void init(DpTrans trans) throws DpCallbackException
init
in interface DpTransValidateCallback
DpCallbackException
public void stop(DpTrans trans) throws DpCallbackException
stop
in interface DpTransValidateCallback
DpCallbackException
public static TransValidateCallbackProxy[] getTransValidateCallbackProxys(Object obj) throws DpCallbackException
obj
- registered Callback POJODpCallbackException