public interface PolicyRegistry
| Modifier and Type | Method and Description |
|---|---|
Policy |
lookup(java.lang.String key)
Returns the Policy that the specified key is mapped.
|
void |
register(java.lang.String key,
Policy policy)
Associates a key with a Policy
|
void |
remove(java.lang.String key)
Removes the mapping for this key if present.
|
void register(java.lang.String key,
Policy policy)
key - the key that the specified Policy to be associatedpolicy - the policy to be associated with the keyPolicy lookup(java.lang.String key)
key - the key whose associated Policy is to be returned.void remove(java.lang.String key)
key - the key whose mapping is to be removed