Class SdcDevicePluginProcessor
java.lang.Object
org.somda.sdc.glue.provider.helper.SdcDevicePluginProcessor
Processes all SdcDevicePlugin instances
passed to an SdcDevice.
-
Constructor Summary
ConstructorsConstructorDescriptionSdcDevicePluginProcessor(Collection<SdcDevicePlugin> devicePlugins, SdcDeviceContext context) Creates a processor with given dependencies. -
Method Summary
Modifier and TypeMethodDescriptionvoidTriggersSdcDevicePlugin.afterShutDown(SdcDeviceContext)for all plugins.voidTriggersSdcDevicePlugin.afterStartUp(SdcDeviceContext)for all plugins.voidTriggersSdcDevicePlugin.beforeShutDown(SdcDeviceContext)(SdcDeviceContext)} for all plugins.voidTriggersSdcDevicePlugin.beforeStartUp(SdcDeviceContext)for all plugins.
-
Constructor Details
-
SdcDevicePluginProcessor
public SdcDevicePluginProcessor(Collection<SdcDevicePlugin> devicePlugins, SdcDeviceContext context) Creates a processor with given dependencies.- Parameters:
devicePlugins- the actual plugins to process once a specific processing step is called.context- the context data passed to eachSdcDevicePlugincallback.
-
-
Method Details
-
beforeStartUp
TriggersSdcDevicePlugin.beforeStartUp(SdcDeviceContext)for all plugins.- Throws:
Exception- if an exception in one of the plugins was thrown. In case an exception occurred, subsequent plugins are not being processed afterwards.
-
afterStartUp
TriggersSdcDevicePlugin.afterStartUp(SdcDeviceContext)for all plugins.- Throws:
Exception- if an exception in one of the plugins was thrown. In case an exception occurred, subsequent plugins are not being processed afterwards.
-
beforeShutDown
public void beforeShutDown()TriggersSdcDevicePlugin.beforeShutDown(SdcDeviceContext)(SdcDeviceContext)} for all plugins.All plugins are executed no matter of any thrown exceptions during processing.
-
afterShutDown
public void afterShutDown()TriggersSdcDevicePlugin.afterShutDown(SdcDeviceContext)for all plugins.All plugins are executed no matter of any thrown exceptions during processing.
-