Class BaseNativeDeviceFactory

java.lang.Object
com.diozero.internal.provider.AbstractDeviceFactory
com.diozero.internal.provider.BaseNativeDeviceFactory
All Implemented Interfaces:
AnalogInputDeviceFactoryInterface, AnalogOutputDeviceFactoryInterface, DeviceFactoryInterface, GpioDeviceFactoryInterface, I2CDeviceFactoryInterface, NativeDeviceFactoryInterface, PwmOutputDeviceFactoryInterface, SpiDeviceFactoryInterface, java.io.Closeable, java.lang.AutoCloseable
Direct Known Subclasses:
SysFsDeviceFactory

public abstract class BaseNativeDeviceFactory
extends AbstractDeviceFactory
implements NativeDeviceFactoryInterface
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