SunSPOT API V5.0


com.sun.spot.peripheral
Class DriverRegistry

java.lang.Object
  extended by com.sun.spot.peripheral.DriverRegistry
All Implemented Interfaces:
IDriverRegistry

public class DriverRegistry
extends Object
implements IDriverRegistry

Acts as a registry for drivers that need to be aware of deep sleep. The Spot singleton holds a singleton of this class. Drivers that require to be informed/asked about deep sleep must be registered with the the DriverRegistry by calling add().


Method Summary
 void add(IDriver driver)
          Add a driver to the registry.
 String[] getRegisteredDriverNames()
          Display a list of all the registered drivers
 void remove(IDriver driver)
          Remove a driver from the registry
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

add

public void add(IDriver driver)
Add a driver to the registry. The driver will now be informed/asked about deep sleep

Specified by:
add in interface IDriverRegistry
Parameters:
driver - The driver to add, which must not already be registered

remove

public void remove(IDriver driver)
Remove a driver from the registry

Specified by:
remove in interface IDriverRegistry
Parameters:
driver - The driver to remove, which must be registered

getRegisteredDriverNames

public String[] getRegisteredDriverNames()
Display a list of all the registered drivers


SunSPOT API V5.0


Copyright � 2006-2008 Sun Microsystems, Inc. All Rights Reserved.