Class DeviceRegistryFactory

java.lang.Object
de.iip_ecosphere.platform.deviceMgt.registry.DeviceRegistryFactory

public class DeviceRegistryFactory extends Object
The DeviceRegistryFactory is capable of creating the DeviceRegistry. It uses the ServiceLoader so new functionality can be added easily.
Author:
Dennis Pidun, University of Hildesheim
  • Field Details

  • Constructor Details

    • DeviceRegistryFactory

      public DeviceRegistryFactory()
  • Method Details

    • getDeviceRegistry

      public static DeviceRegistry getDeviceRegistry()
      Gets or creates a DeviceRegistry using the first found service provider implementations for DeviceRegistryFactoryDescriptor, which is able to create the instance.
      Returns:
      a DeviceRegistry or null if no DeviceRegistryFactoryDescriptor is found
    • resetDeviceRegistryFactory

      static void resetDeviceRegistryFactory()
      Resets the factory. Only meant for testing!