Class SdcDevicePluginProcessor
- java.lang.Object
-
- org.somda.sdc.glue.provider.helper.SdcDevicePluginProcessor
-
public class SdcDevicePluginProcessor extends Object
Processes all SdcDevicePlugin instances passed to an SdcDevice.
-
-
Constructor Summary
Constructors Constructor Description SdcDevicePluginProcessor(Collection<SdcDevicePlugin> devicePlugins, SdcDeviceContext context)Creates a processor with given dependencies.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterShutDown()TriggersSdcDevicePlugin.afterShutDown(SdcDeviceContext)for all plugins.voidafterStartUp()TriggersSdcDevicePlugin.afterStartUp(SdcDeviceContext)for all plugins.voidbeforeShutDown()TriggersSdcDevicePlugin.beforeShutDown(SdcDeviceContext)(SdcDeviceContext)} for all plugins.voidbeforeStartUp()TriggersSdcDevicePlugin.beforeStartUp(SdcDeviceContext)for all plugins.
-
-
-
Constructor Detail
-
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 Detail
-
beforeStartUp
public void beforeStartUp() throws ExceptionTriggersSdcDevicePlugin.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
public void afterStartUp() throws ExceptionTriggersSdcDevicePlugin.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.
-
-