Class AbstractDeviceProvider

  • All Implemented Interfaces:
    DeviceProvider, Provider

    public abstract class AbstractDeviceProvider
    extends AbstractProvider
    implements DeviceProvider
    Base device provider capable of engaging DeviceDescriptionDiscovery driver behaviour to discover device and port details.

    Assumes that derived classes will provide code to learn/generate device identifier. Also assumes that derived classes will either obtain the primordial device information sufficient to locate the correct driver, or that they will know which driver should be used, e.g. from network configuration.

    • Constructor Detail

      • AbstractDeviceProvider

        protected AbstractDeviceProvider​(ProviderId id)
        Creates a provider with the supplied identifier.
        id - provider id
    • Method Detail

      • activate

        protected void activate()
      • deactivate

        protected void deactivate()
      • discoverDevice

        protected void discoverDevice​(DriverHandler handler)
        Discovers the device details using the device discovery behaviour of the supplied driver handler context for interacting with a specific device.
        handler - driver handler context