com.cisco.provisioning.cpe.events
Class DeviceTypeAdapter

java.lang.Object
  extended by com.cisco.provisioning.cpe.events.DeviceTypeAdapter
All Implemented Interfaces:
DeviceTypeListener, ProvAPIEventListener

public abstract class DeviceTypeAdapter
extends Object
implements DeviceTypeListener

An abstract class that provides no-op definitions of all methods in the DeviceTypeListener interface. Users must extend this class, and then implement the methods for the desired DeviceTypeEvent sub-event notifications.


Field Summary
 
Fields inherited from interface com.cisco.provisioning.cpe.events.DeviceTypeListener
DELETED_DEVICE_TYPE, DEVICE_TYPE_PROPS_CHANGE, NEW_DEVICE_TYPE
 
Constructor Summary
DeviceTypeAdapter()
           
 
Method Summary
 void deletedDeviceType(DeviceTypeEvent ev)
          The method invoked when a DeviceTypeEvent arrives as a result of a DeviceType having been deleted.
 void deviceTypePropsChanged(DeviceTypeEvent ev)
          The method invoked when a DeviceTypeEvent arrives as a result of a DeviceType Property changed.
 boolean getOneShot()
          Gets oneShot mode value, specifying whether or not the listener is registered for just one occurrence of the Event.
 void newDeviceType(DeviceTypeEvent ev)
          The method invoked when a DeviceTypeEvent arrives as a result of a DeviceType has been added.
 void setOneShot(boolean flg)
          Sets oneShot mode, specifying that the registration request is for just one occurrence of the Event.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeviceTypeAdapter

public DeviceTypeAdapter()
Method Detail

newDeviceType

public void newDeviceType(DeviceTypeEvent ev)
The method invoked when a DeviceTypeEvent arrives as a result of a DeviceType has been added.

Specified by:
newDeviceType in interface DeviceTypeListener
Parameters:
ev - The object containing the DeviceTypeEvent data.

deletedDeviceType

public void deletedDeviceType(DeviceTypeEvent ev)
The method invoked when a DeviceTypeEvent arrives as a result of a DeviceType having been deleted.

Specified by:
deletedDeviceType in interface DeviceTypeListener
Parameters:
ev - The object containing the DeviceTypeEvent data.

deviceTypePropsChanged

public void deviceTypePropsChanged(DeviceTypeEvent ev)
The method invoked when a DeviceTypeEvent arrives as a result of a DeviceType Property changed.

Specified by:
deviceTypePropsChanged in interface DeviceTypeListener
Parameters:
ev - The object containing the DeviceTypeEvent data.

getOneShot

public boolean getOneShot()
Gets oneShot mode value, specifying whether or not the listener is registered for just one occurrence of the Event.

Specified by:
getOneShot in interface ProvAPIEventListener
Returns:
true if oneShot mode has been set

setOneShot

public void setOneShot(boolean flg)
Sets oneShot mode, specifying that the registration request is for just one occurrence of the Event.

Specified by:
setOneShot in interface ProvAPIEventListener
Parameters:
flg - true if oneShot mode is being set