Class DeviceRegistryFactory
java.lang.Object
de.iip_ecosphere.platform.deviceMgt.registry.DeviceRegistryFactory
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 Summary
FieldsModifier and TypeFieldDescriptionprivate static DeviceRegistryFactoryDescriptorprivate static final de.iip_ecosphere.platform.support.logging.Loggerprivate static DeviceRegistryProxy -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DeviceRegistryGets or creates a DeviceRegistry using the first found service provider implementations forDeviceRegistryFactoryDescriptor, which is able to create the instance.(package private) static voidResets the factory.
-
Field Details
-
LOGGER
private static final de.iip_ecosphere.platform.support.logging.Logger LOGGER -
desc
-
proxy
-
-
Constructor Details
-
DeviceRegistryFactory
public DeviceRegistryFactory()
-
-
Method Details
-
getDeviceRegistry
Gets or creates a DeviceRegistry using the first found service provider implementations forDeviceRegistryFactoryDescriptor, which is able to create the instance.- Returns:
- a DeviceRegistry or null if no
DeviceRegistryFactoryDescriptoris found
-
resetDeviceRegistryFactory
static void resetDeviceRegistryFactory()Resets the factory. Only meant for testing!
-