public class NanoServiceCallbackProxy extends Object implements DpNanoServiceCallback
DpServiceCallback
interface and delegates calls to the registered callback POJO with annotated
methodsM_NANO_CREATE, M_NANO_DELETE| Constructor and Description |
|---|
NanoServiceCallbackProxy(Object backupObject,
String servicePoint,
String componentType,
String state)
Constructor for Callback proxys.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addActionCapability(NanoServiceCBType nanoServiceCBType)
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
|
String |
componentType()
The name of the plan component
|
Properties |
create(NanoServiceContext context,
NavuNode service,
NavuNode root,
Properties opaque)
Nano Create callback method.
|
Properties |
delete(NanoServiceContext context,
NavuNode service,
NavuNode root,
Properties opaque)
Nano Delete callback method.
|
Object |
getBackupObject()
Retrieve the callback POJO
|
static NanoServiceCallbackProxy[] |
getNanoServiceCallbackProxys(Object obj)
Get array of proxy objects from registered POJO callback.
|
String |
getServicePoint()
Retrieve the callback servicepoint
|
int |
mask()
Mask of flags for each method that is supported by this callback:
DpNanoServiceCallback.M_NANO_CREATE
DpNanoServiceCallback.M_NANO_DELETE
|
String |
servicepoint()
The name of the servicepoint
|
String |
state()
The name of the a certain plan component state
|
public NanoServiceCallbackProxy(Object backupObject, String servicePoint, String componentType, String state)
backupObject - registered callback POJOservicePoint - string describing the servicepoint for this callbackpublic void addActionCapability(NanoServiceCBType nanoServiceCBType)
nanoServiceCBType - action typepublic void addActionMethod(String name, Method method)
name - canonical action namemethod - registered callback methodpublic String componentType()
DpNanoServiceCallbackcomponentType in interface DpNanoServiceCallbackpublic Properties create(NanoServiceContext context, NavuNode service, NavuNode root, Properties opaque) throws DpCallbackException
DpNanoServiceCallbackcreate in interface DpNanoServiceCallbackDpCallbackExceptionpublic Properties delete(NanoServiceContext context, NavuNode service, NavuNode root, Properties opaque) throws DpCallbackException
DpNanoServiceCallbackdelete in interface DpNanoServiceCallbackDpCallbackExceptionpublic Object getBackupObject()
public static NanoServiceCallbackProxy[] getNanoServiceCallbackProxys(Object obj) throws DpCallbackException
obj - registered Callback POJODpCallbackExceptionpublic String getServicePoint()
public int mask()
DpNanoServiceCallbackmask in interface DpNanoServiceCallbackpublic String servicepoint()
DpNanoServiceCallbackservicepoint in interface DpNanoServiceCallbackpublic String state()
DpNanoServiceCallbackstate in interface DpNanoServiceCallback