net.jhid.core
Class Enumerator

java.lang.Object
  extended bynet.jhid.core.Enumerator

public class Enumerator
extends java.lang.Object

A singleton that permits to retrieve all available devices in the system. Usage: Enumerator.getInstance().getDevices()

Implementation note: the enumerator uses the SPI to retrieve all contributed device providers, which in turn provide devices. See IDeviceProvider.


Constructor Summary
protected Enumerator()
           
 
Method Summary
 java.util.List getDevices()
          Returns all available devices.
static Enumerator getInstance()
          Returns the singleton instance of the enumerator, or null if jhid is not available on this system.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Enumerator

protected Enumerator()
Method Detail

getInstance

public static Enumerator getInstance()
Returns the singleton instance of the enumerator, or null if jhid is not available on this system.


getDevices

public java.util.List getDevices()
Returns all available devices.