Class SdcRequiredTypesAndScopes
- java.lang.Object
-
- org.somda.sdc.glue.provider.plugin.SdcRequiredTypesAndScopes
-
- All Implemented Interfaces:
MdibAccessObserver,ScopesDecorator,SdcDevicePlugin
public class SdcRequiredTypesAndScopes extends Object implements SdcDevicePlugin, MdibAccessObserver, ScopesDecorator
Maps all WS-Discovery Types and Scopes required by SDC and sends Hellos respectively.In order to append custom scopes please consider using the
ScopesDecorator.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterShutDown(SdcDeviceContext context)Called after the device was shut down.voidappendScopesAndSendHello(Set<String> scopes)Gives the order to append the given set of scopes and send a Hello if changes ensued.voidbeforeStartUp(SdcDeviceContext context)Called before the device starts up.voidinit(SdcDeviceContext context, Set<String> scopes)Call this function to initialize the scopes decorator.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.somda.sdc.glue.provider.SdcDevicePlugin
afterStartUp, beforeShutDown
-
-
-
-
Method Detail
-
beforeStartUp
public void beforeStartUp(SdcDeviceContext context)
Description copied from interface:SdcDevicePluginCalled before the device starts up.- Specified by:
beforeStartUpin interfaceSdcDevicePlugin- Parameters:
context- all accessibleSdcDevicedata.
-
afterShutDown
public void afterShutDown(SdcDeviceContext context)
Description copied from interface:SdcDevicePluginCalled after the device was shut down.This callback is triggered only if the device was running before, i.e.,
AbstractIdleService.isRunning()returned true.- Specified by:
afterShutDownin interfaceSdcDevicePlugin- Parameters:
context- all accessibleSdcDevicedata.
-
init
public void init(SdcDeviceContext context, Set<String> scopes)
Description copied from interface:ScopesDecoratorCall this function to initialize the scopes decorator.Not doing so can cause unknown side-effects depending on the decorated implementation.
- Specified by:
initin interfaceScopesDecorator- Parameters:
context- the context data possibly needed by the decorator to work.scopes- initial set of scopes visible to the decorator.
-
appendScopesAndSendHello
public void appendScopesAndSendHello(Set<String> scopes)
Description copied from interface:ScopesDecoratorGives the order to append the given set of scopes and send a Hello if changes ensued.Call this function after a context or description modification message has been processed.
- Specified by:
appendScopesAndSendHelloin interfaceScopesDecorator- Parameters:
scopes- the scopes to update.
-
-