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,
Properties componentProperties)
Nano Create callback method.
|
Properties |
delete(NanoServiceContext context,
NavuNode service,
NavuNode root,
Properties opaque,
Properties componentProperties)
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 Object getBackupObject()
public String getServicePoint()
public String componentType()
DpNanoServiceCallbackcomponentType in interface DpNanoServiceCallbackpublic String state()
DpNanoServiceCallbackstate in interface DpNanoServiceCallbackpublic void addActionMethod(String name, Method method)
name - canonical action namemethod - registered callback methodpublic void addActionCapability(NanoServiceCBType nanoServiceCBType)
nanoServiceCBType - action typepublic String servicepoint()
DpNanoServiceCallbackservicepoint in interface DpNanoServiceCallbackpublic Properties create(NanoServiceContext context, NavuNode service, NavuNode root, Properties opaque, Properties componentProperties) throws DpCallbackException
DpNanoServiceCallbackcreate in interface DpNanoServiceCallbackDpCallbackExceptionpublic Properties delete(NanoServiceContext context, NavuNode service, NavuNode root, Properties opaque, Properties componentProperties) throws DpCallbackException
DpNanoServiceCallbackdelete in interface DpNanoServiceCallbackDpCallbackExceptionpublic int mask()
DpNanoServiceCallbackmask in interface DpNanoServiceCallbackpublic static NanoServiceCallbackProxy[] getNanoServiceCallbackProxys(Object obj) throws DpCallbackException
obj - registered Callback POJODpCallbackException