Package org.hid4java
Class HidManager
- java.lang.Object
-
- org.hid4java.HidManager
-
public class HidManager extends java.lang.Object
Factory to provide the following to API consumers:
- Access to configured HID services
- Since:
- 0.0.1
-
-
Field Summary
Fields Modifier and Type Field Description private static HidServices
hidServices
private static java.lang.Object
servicesLock
-
Constructor Summary
Constructors Constructor Description HidManager()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static HidServices
getHidServices()
Simple service provider providing generally safe defaults.static HidServices
getHidServices(HidServicesSpecification hidServicesSpecification)
Fully configurable service provider
-
-
-
Field Detail
-
servicesLock
private static final java.lang.Object servicesLock
-
hidServices
private static HidServices hidServices
-
-
Method Detail
-
getHidServices
public static HidServices getHidServices() throws HidException
Simple service provider providing generally safe defaults. If you find you are experiencing problems, particularly with constrained devices, consider exploring the
HidServicesSpecification
options.- Returns:
- A single instance of the HID services using the default specification
- Throws:
HidException
-
getHidServices
public static HidServices getHidServices(HidServicesSpecification hidServicesSpecification) throws HidException
Fully configurable service provider
- Parameters:
hidServicesSpecification
- Provides various parameters for configuring HID services- Returns:
- A single instance of the HID services using specified parameters
- Throws:
HidException
- Since:
- 0.5.0
-
-