Interface PolicyRegistry

All Known Implementing Classes:
PolicyRegistryImpl

public interface PolicyRegistry
PolicyRegistry contains (URI,Policy) pairs and it is used to resolve explicit Policy references.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the Policy that the specified key is mapped.
    void
    register(String key, Policy policy)
    Associates a key with a Policy
    void
    Removes the mapping for this key if present.
  • Method Details

    • register

      void register(String key, Policy policy)
      Associates a key with a Policy
      Parameters:
      key - the key that the specified Policy to be associated
      policy - the policy to be associated with the key
    • lookup

      Policy lookup(String key)
      Returns the Policy that the specified key is mapped. Returns null if no Policy is associated with that key.
      Parameters:
      key - the key whose associated Policy is to be returned.
      Returns:
      the policy associated with the specified key.
    • remove

      void remove(String key)
      Removes the mapping for this key if present.
      Parameters:
      key - the key whose mapping is to be removed