Package com.tailf.dp.annotations
Class NanoServiceCallbackProxy
Object
com.tailf.dp.annotations.NanoServiceCallbackProxy
- All Implemented Interfaces:
DpNanoServiceCallback
Callback proxy for Nano Service Callbacks.
Implements the
DpServiceCallback
interface and delegates calls to the registered callback POJO with annotated
methods-
Field Summary
Fields inherited from interface com.tailf.dp.DpNanoServiceCallback
M_NANO_CREATE, M_NANO_DELETE
-
Constructor Summary
ConstructorDescriptionNanoServiceCallbackProxy
(Object backupObject, String servicePoint, String componentType, String state) Constructor for Callback proxys. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addActionCapability
(NanoServiceCBType nanoServiceCBType) Add action capability from annotated callType used to register capabilities on the servervoid
addActionMethod
(String name, Method method) Add callback action method to proxyThe name of the plan componentcreate
(NanoServiceContext context, NavuNode service, NavuNode root, Properties opaque, Properties componentProperties) Nano Create callback method.delete
(NanoServiceContext context, NavuNode service, NavuNode root, Properties opaque, Properties componentProperties) Nano Delete callback method.Retrieve the callback POJOstatic NanoServiceCallbackProxy[]
Get array of proxy objects from registered POJO callback.Retrieve the callback servicepointint
mask()
Mask of flags for each method that is supported by this callback:DpNanoServiceCallback.M_NANO_CREATE
DpNanoServiceCallback.M_NANO_DELETE
The name of the servicepointstate()
The name of the a certain plan component state
-
Constructor Details
-
NanoServiceCallbackProxy
public NanoServiceCallbackProxy(Object backupObject, String servicePoint, String componentType, String state) Constructor for Callback proxys. Used internally.- Parameters:
backupObject
- registered callback POJOservicePoint
- string describing the servicepoint for this callback
-
-
Method Details
-
getBackupObject
Retrieve the callback POJO- Returns:
- Object registered callback object
-
getServicePoint
Retrieve the callback servicepoint- Returns:
- servicepoint string
-
componentType
Description copied from interface:DpNanoServiceCallback
The name of the plan component- Specified by:
componentType
in interfaceDpNanoServiceCallback
-
state
Description copied from interface:DpNanoServiceCallback
The name of the a certain plan component state- Specified by:
state
in interfaceDpNanoServiceCallback
-
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:
nanoServiceCBType
- action type
-
servicepoint
Description copied from interface:DpNanoServiceCallback
The name of the servicepoint- Specified by:
servicepoint
in interfaceDpNanoServiceCallback
-
mask
public int mask()Description copied from interface:DpNanoServiceCallback
Mask of flags for each method that is supported by this callback:- Specified by:
mask
in interfaceDpNanoServiceCallback
-
getNanoServiceCallbackProxys
public static NanoServiceCallbackProxy[] getNanoServiceCallbackProxys(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 NanoServCallbackProxy
- Throws:
DpCallbackException
-