|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.neethi.PolicyRegistryImpl
public class PolicyRegistryImpl
Provides a default implementation of PolicyRegistry interface.
| Constructor Summary | |
|---|---|
PolicyRegistryImpl()
|
|
PolicyRegistryImpl(PolicyRegistry parent)
Constructs a PolicyRegistryImpl with the specified PolicyRegistry as it's parent. |
|
| Method Summary | |
|---|---|
PolicyRegistry |
getParent()
|
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. |
void |
setParent(PolicyRegistry parent)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PolicyRegistryImpl()
public PolicyRegistryImpl(PolicyRegistry parent)
parent - the Parent of this PolicyRegistry| Method Detail |
|---|
public Policy lookup(String key)
PolicyRegistry
lookup in interface PolicyRegistrykey - the key whose associated Policy is to be returned.
public void register(String key,
Policy policy)
PolicyRegistry
register in interface PolicyRegistrykey - the key that the specified Policy to be associatedpolicy - the policy to be associated with the keypublic void remove(String key)
PolicyRegistry
remove in interface PolicyRegistrykey - the key whose mapping is to be removedpublic void setParent(PolicyRegistry parent)
public PolicyRegistry getParent()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||