|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.cms.beans.config.ObservedManager
public abstract class ObservedManager
A lot of "manager" objects are observed. Will mean that they reload the registered content after the content was changed. To centralize this code we use this abstract manager. A subclass will implement onRegister and onClear.
Field Summary | |
---|---|
protected org.slf4j.Logger |
log
|
protected Set<String> |
registeredUUIDs
UUIDs of the registered main nodes. |
Constructor Summary | |
---|---|
ObservedManager()
|
Method Summary | |
---|---|
void |
clear()
Clears the registered UUIDs and calls onClear(). |
protected abstract void |
onClear()
The implementor should clear everthing. |
protected abstract void |
onRegister(Content node)
Registers a node. |
void |
register(Content node)
Register a node. |
void |
reload()
Calls onClear and reregister the nodes by calling onRegister. |
protected void |
reload(Content node)
Reload a specific node. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final org.slf4j.Logger log
protected Set<String> registeredUUIDs
Constructor Detail |
---|
public ObservedManager()
Method Detail |
---|
public void register(Content node)
node
- the node to registerpublic void reload()
protected void reload(Content node)
node
- public void clear()
protected abstract void onRegister(Content node)
node
- protected abstract void onClear()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |