org.apache.tamaya.server.spi

## Class ScopeManager

- java.lang.Object
- - org.apache.tamaya.server.spi.ScopeManager

-     public final class ScopeManager
      extends Object

  Singleton manager for scopes, used by the server component to filtering returned configurations.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `static org.apache.tamaya.ConfigOperator` | `getScope(String scopeId, String targetScope)` Get the scope given its id and provider.
    `static Set<String>` | `getScopes()` Get the defined scope names.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### getScope

          public static org.apache.tamaya.ConfigOperator getScope(String scopeId,
                                                  String targetScope)
                                                           throws org.apache.tamaya.ConfigException

      Get the scope given its id and provider.
      Parameters:
        `scopeId` - the scope name
        `targetScope` - name of the targetScope
      Returns:
        the scope matching
      Throws:
        `org.apache.tamaya.ConfigException` - if no such scope is defined

    - #### getScopes

          public static Set<String> getScopes()

      Get the defined scope names.
      Returns:
        the defined scope names, never null.

Copyright © 2014–2016 Apache Software Foundation. All rights reserved.