public class EventCallbackProxy extends Object implements NavuEventCallback
Constructor and Description |
---|
EventCallbackProxy(Object backupObject,
String deviceName,
String subscriptionName)
Constructor for Callback proxys.
|
Modifier and Type | Method and Description |
---|---|
void |
addActionCapability(EventCBType eventCBType)
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
|
Object |
getBackupObject()
Retrieve the callback POJO
|
String |
getDeviceName()
Retrieve the callback deviceName
|
static EventCallbackProxy[] |
getEventCallbackProxys(Object obj)
Get array of proxy objects from registered POJO callback.
|
String |
getSubscriptionName()
Retrieve the callback deviceName
|
void |
notifReceived(NavuContainer event)
This callback method is received to each cdb notification that correspond
to the annotated deviceName and subscription name.
|
public Object getBackupObject()
public String getDeviceName()
public String getSubscriptionName()
public void addActionMethod(String name, Method method)
name
- canonical action namemethod
- registered callback methodpublic void addActionCapability(EventCBType eventCBType)
eventCBType
- action typepublic void notifReceived(NavuContainer event) throws NcsException
NavuEventCallback
notifReceived
in interface NavuEventCallback
NcsException
public static EventCallbackProxy[] getEventCallbackProxys(Object obj) throws NcsException
obj
- registered Callback POJONcsException