info.magnolia.cms.util
Class ModuleConfigurationObservingManager

java.lang.Object
  extended by info.magnolia.cms.util.WorkspaceObservingManager
      extended by info.magnolia.cms.util.ModuleConfigurationObservingManager
Direct Known Subclasses:
ConfiguredRendererManager, ConfiguredTemplateDefinitionManager

public abstract class ModuleConfigurationObservingManager
extends WorkspaceObservingManager

Base class for managers that monitor configuration within modules and react when its changed to reload. Configuration is read from a sub path of each modules configuration node. Subclasses override either reload(List) or the pair onClear() and onRegister().


Constructor Summary
protected ModuleConfigurationObservingManager(String pathWithinModule, ModuleRegistry moduleRegistry)
           
 
Method Summary
protected  List<String> getObservedPaths()
           
protected  javax.jcr.Session getSession()
           
protected  void onClear()
           
protected  void onRegister(javax.jcr.Node node)
           
protected  void onStart()
           
protected  void registerChangeListener(javax.jcr.observation.EventListener eventListener)
           
protected  void reload()
           
protected  void reload(List<javax.jcr.Node> nodes)
           
 
Methods inherited from class info.magnolia.cms.util.WorkspaceObservingManager
getDelay, getEventTypesMask, getMaxDelay, getNodeTypes, getObservedPath, getReloadMonitor, getWorkspace, isIncludeSubNodes, setDelay, setMaxDelay, start
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModuleConfigurationObservingManager

protected ModuleConfigurationObservingManager(String pathWithinModule,
                                              ModuleRegistry moduleRegistry)
Method Detail

registerChangeListener

protected void registerChangeListener(javax.jcr.observation.EventListener eventListener)
Overrides:
registerChangeListener in class WorkspaceObservingManager

onStart

protected void onStart()
Overrides:
onStart in class WorkspaceObservingManager

reload

protected void reload()
Specified by:
reload in class WorkspaceObservingManager

reload

protected void reload(List<javax.jcr.Node> nodes)
               throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException

onClear

protected void onClear()
                throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException

onRegister

protected void onRegister(javax.jcr.Node node)
                   throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException

getSession

protected javax.jcr.Session getSession()
                                throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException

getObservedPaths

protected List<String> getObservedPaths()


Copyright © 2003-2014 Magnolia International Ltd.. All Rights Reserved.