SunSPOT API V3.0


com.sun.squawk.peripheral
Class PeripheralRegistry

java.lang.Object
  extended by com.sun.squawk.peripheral.PeripheralRegistry

public class PeripheralRegistry
extends Object

Place holder for all peripheral types known by Squawk.

Author:
Eric Arseneau

Constructor Summary
PeripheralRegistry()
           
 
Method Summary
 void add(IPeripheral peripheral)
           
 IPeripheral[] getAll(Class type)
          Return all peripherals of type type.
 IPeripheral getSingleton(Class type)
           
 void removeAll(Class type)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PeripheralRegistry

public PeripheralRegistry()
Method Detail

add

public void add(IPeripheral peripheral)

getAll

public IPeripheral[] getAll(Class type)
Return all peripherals of type type.

Parameters:
type -
Returns:
array of peripherals

getSingleton

public IPeripheral getSingleton(Class type)

removeAll

public void removeAll(Class type)

SunSPOT API V3.0


Copyright © 2006, 2007 Sun Microsystems, Inc. All Rights Reserved.