|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.neethi.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(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 |
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 PolicyRegistryMethod Detail |
public Policy lookup(java.lang.String key)
PolicyRegistry
lookup
in interface PolicyRegistry
key
- the key whose associated Policy is to be returned.
public void register(java.lang.String key, Policy policy)
PolicyRegistry
register
in interface PolicyRegistry
key
- the key that the specified Policy to be associatedpolicy
- the policy to be associated with the keypublic void remove(java.lang.String key)
PolicyRegistry
remove
in interface PolicyRegistry
key
- 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 |