Class BaseNativeDeviceFactory

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

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.spi.provider.NativeDeviceFactoryInterface While the ServiceLoader supports multiple service providers, only the first entry in this file is used