Interface ScopesDecorator

  • All Implemented Interfaces:

    
    public interface ScopesDecorator
    
                        

    Decorator interface to allow extending WS-Discovery Scopes during runtime.

    The decorator does only allow changes to scopes based on context and description modifications. This interface can be used to extend the required types and scopes implementation SdcRequiredTypesAndScopes by means of the decorator pattern.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract void init(SdcDeviceContext context, Set<String> scopes) Call this function to initialize the scopes decorator.
      abstract void appendScopesAndSendHello(Set<String> scopes) Gives the order to append the given set of scopes and send a Hello if changes ensued.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • init

         abstract void init(SdcDeviceContext context, Set<String> scopes)

        Call this function to initialize the scopes decorator.

        Not doing so can cause unknown side-effects depending on the decorated implementation.

        Parameters:
        context - the context data possibly needed by the decorator to work.
        scopes - initial set of scopes visible to the decorator.
      • appendScopesAndSendHello

         abstract void appendScopesAndSendHello(Set<String> scopes)

        Gives 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.

        Parameters:
        scopes - the scopes to update.