Package org.hid4java

Class 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 Detail

      • servicesLock

        private static final java.lang.Object servicesLock
    • Constructor Detail

      • HidManager

        public HidManager()
    • 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