Interface SdcDeviceFactory
public interface SdcDeviceFactory
Factory to create SDC compatible devices.
-
Method Summary
Modifier and TypeMethodDescriptioncreateSdcDevice(DeviceSettings deviceSettings, LocalMdibAccess mdibAccess, Collection<OperationInvocationReceiver> operationInvocationReceivers, Collection<SdcDevicePlugin> plugins) Creates a new SdcDevice instance.createSdcDevice(DeviceSettings deviceSettings, LocalMdibAccess mdibAccess, Collection<OperationInvocationReceiver> operationInvocationReceivers, Collection<SdcDevicePlugin> plugins, LocalizationStorage localizationStorage) Creates a new SdcDevice instance.
-
Method Details
-
createSdcDevice
SdcDevice createSdcDevice(DeviceSettings deviceSettings, LocalMdibAccess mdibAccess, Collection<OperationInvocationReceiver> operationInvocationReceivers, Collection<SdcDevicePlugin> plugins) Creates a new SdcDevice instance.- Parameters:
deviceSettings- the DPPWS device settings to use.mdibAccess- the MDIB to be exposed on the network.operationInvocationReceivers- callback interceptors for incoming set service requests.plugins-SdcRequiredTypesAndScopesif the collection is empty or custom plugins to run on start up and shut down in the order given by this collection. Make sure plugins are independent to each other. Also make sure that at least theSdcRequiredTypesAndScopesor a functionally equivalent plugin is loaded. SeeSdcDevicePluginfor more details.- Returns:
- a new
SdcDevice. UseAbstractIdleService.startAsync()in order to start exposing the device on the network.
-
createSdcDevice
SdcDevice createSdcDevice(DeviceSettings deviceSettings, LocalMdibAccess mdibAccess, Collection<OperationInvocationReceiver> operationInvocationReceivers, Collection<SdcDevicePlugin> plugins, @Nullable LocalizationStorage localizationStorage) Creates a new SdcDevice instance.- Parameters:
deviceSettings- the DPPWS device settings to use.mdibAccess- the MDIB to be exposed on the network.operationInvocationReceivers- callback interceptors for incoming set service requests.plugins-SdcRequiredTypesAndScopesif the collection is empty or custom plugins to run on start up and shut down in the order given by this collection. Make sure plugins are independent to each other. Also make sure that at least theSdcRequiredTypesAndScopesor a functionally equivalent plugin is loaded. SeeSdcDevicePluginfor more details.localizationStorage- optionalLocalizationStorageimplementation. If provided it's used by theLocalizationServiceto fetch localized texts.LocalizationServiceis enabled for the device only if localization storage is provided.- Returns:
- a new
SdcDevice. UseAbstractIdleService.startAsync()in order to start exposing the device on the network.
-