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