Class DeviceFactoryHelper

java.lang.Object
com.diozero.util.DeviceFactoryHelper

public class DeviceFactoryHelper
extends java.lang.Object
Helper class for instantiating different devices via the configured provider. To set the provider edit META-INF/services/com.diozero.internal.provider.NativeDeviceFactoryInterface While the ServiceLoader supports multiple service providers, only the first entry in this file is used. Alternatively you can set the command line property "com.diozero.devicefactory" to override the ServiceLoader.