org.apache.neethi
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
 Policy lookup(String key)
          Returns the Policy that the specified key is mapped.
 void register(String key, Policy policy)
          Associates a key with a Policy
 void remove(String key)
          Removes the mapping for this key if present.
 

Method Detail

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


Copyright © 2004-2014 The Apache Software Foundation. All Rights Reserved.