Package com.tailf.dp.annotations
Class TransValidateCallbackProxy
Object
com.tailf.dp.annotations.TransValidateCallbackProxy
- All Implemented Interfaces:
DpTransValidateCallback
Callback proxy for TransValidate Callbacks. Implements the
DpTransValidateCallback
interface and delegates calls to the
registered callback POJO with annotated methods-
Constructor Summary
ConstructorDescriptionTransValidateCallbackProxy
(Object backupObject) Constructor for Callback proxys. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addActionCapability
(TransValidateCBType transValidCBType) Add action capability from annotated callType used to register capabilities on the servervoid
addActionMethod
(String name, Method method) Add callback action method to proxyRetrieve the callback POJOstatic TransValidateCallbackProxy[]
Get array of proxy objects from registered POJO callback.void
void
-
Constructor Details
-
TransValidateCallbackProxy
Constructor for Callback proxys. Used internally.- Parameters:
backupObject
- registered callback POJO
-
-
Method Details
-
getBackupObject
Retrieve the callback POJO- Returns:
- Object registered callback object
-
addActionMethod
Add callback action method to proxy- Parameters:
name
- canonical action namemethod
- registered callback method
-
addActionCapability
Add action capability from annotated callType used to register capabilities on the server- Parameters:
transValidCBType
- action type
-
init
- Specified by:
init
in interfaceDpTransValidateCallback
- Throws:
DpCallbackException
-
stop
- Specified by:
stop
in interfaceDpTransValidateCallback
- Throws:
DpCallbackException
-
getTransValidateCallbackProxys
public static TransValidateCallbackProxy[] getTransValidateCallbackProxys(Object obj) throws DpCallbackException Get array of proxy objects from registered POJO callback. Used internally at callback registration- Parameters:
obj
- registered Callback POJO- Returns:
- array of TransValidateCallbackProxy
- Throws:
DpCallbackException
-