public interface ControllerListener
Modifier and Type | Method and Description |
---|---|
<D extends ej.ecom.Device> |
onError(java.lang.Class<D> deviceType,
D device)
An error occurred on a device.
|
<D extends ej.ecom.Device> |
onEvent(java.lang.Class<D> deviceType,
D device)
An event occurred on a device.
|
<D extends ej.ecom.Device> |
onRegister(java.lang.Class<D> deviceType,
D device)
Registers a new device with the given type.
|
<D extends ej.ecom.Device> |
onUnregister(D device)
Unregisters the given device.
|
<D extends ej.ecom.Device> void onError(java.lang.Class<D> deviceType, D device)
D
- the type of the device to be registereddeviceType
- the type of the device to be registereddevice
- the device itself<D extends ej.ecom.Device> void onEvent(java.lang.Class<D> deviceType, D device)
D
- the type of the device to be registereddeviceType
- the type of the devicedevice
- the device itself<D extends ej.ecom.Device> void onRegister(java.lang.Class<D> deviceType, D device)
D
- the type of the device to be registereddeviceType
- the type of the device to be registereddevice
- the device to be registered<D extends ej.ecom.Device> void onUnregister(D device)
D
- the type of the device to be registereddevice
- the device to be unregistered