|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.townleyenterprises.common.OverrideManager
This class provides an implementation for tracking overridable nodes based on a pluggable override strategy.
Constructor Summary | |
OverrideManager()
|
Method Summary | |
java.lang.Object |
get(java.lang.Object key)
This method retrieves the value for the specified key. |
java.util.Collection |
getKeys()
This method returns all of the keys managed by this instance. |
protected abstract java.util.Collection |
getKeys(java.lang.Object object)
This method is used to retrieve the property keys from the specified object. |
protected OverrideNode |
getNode(java.lang.Object key)
This method is used to retrieve the specific OverrideNode associated with the given key. |
protected abstract java.lang.Object |
getValue(java.lang.Object key,
java.lang.Object object)
This method is used to retrieve the value for the specific property key given the managed object. |
void |
manage(java.lang.Object object)
This method is used to add the specified object to the managed objects of this instance. |
protected java.lang.Object |
resolve(java.lang.Object key,
java.lang.Object s1,
java.lang.Object s2)
Provide an implementation of the strategy interface based on the configured strategy. |
void |
setOverrideStrategy(OverrideStrategy strategy)
This method is used to configure the override strategy used when adding new objects. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public OverrideManager()
Method Detail |
public java.util.Collection getKeys()
public java.lang.Object get(java.lang.Object key)
key
- the key to retrieve
public void manage(java.lang.Object object)
object
- the object to managepublic void setOverrideStrategy(OverrideStrategy strategy)
strategy
- the strategyprotected final java.lang.Object resolve(java.lang.Object key, java.lang.Object s1, java.lang.Object s2)
key
- the keys1
- the first suppliers2
- the second supplier
protected abstract java.util.Collection getKeys(java.lang.Object object)
object
- the object to manage
protected abstract java.lang.Object getValue(java.lang.Object key, java.lang.Object object)
key
- the key to retrieveobject
- the object to manipulate
protected OverrideNode getNode(java.lang.Object key)
key
- the key
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |