info.magnolia.module.admininterface
Class TreeHandlerManager<H extends AdminTreeMVCHandler>

java.lang.Object
  extended by info.magnolia.cms.beans.config.ObservedManager
      extended by info.magnolia.module.admininterface.TreeHandlerManager<H>

@Singleton
public class TreeHandlerManager<H extends AdminTreeMVCHandler>
extends info.magnolia.cms.beans.config.ObservedManager


Field Summary
 
Fields inherited from class info.magnolia.cms.beans.config.ObservedManager
log, registeredUUIDs
 
Constructor Summary
TreeHandlerManager()
           
 
Method Summary
static
<H extends AdminTreeMVCHandler>
TreeHandlerManager<H>
getInstance()
           
 AdminTreeMVCHandler getTreeHandler(String name, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Get the tree handler registered under a particular name.
protected  void onClear()
          Clear the handlers
protected  void onRegister(info.magnolia.cms.core.Content defNode)
           
protected  void registerTreeHandler(String name, String repository, Class<H> treeHandler, info.magnolia.cms.core.Content treeDefinition)
           
 
Methods inherited from class info.magnolia.cms.beans.config.ObservedManager
clear, getNodeByIdentifierOrPath, register, reload, reload
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TreeHandlerManager

public TreeHandlerManager()
Method Detail

getTreeHandler

public AdminTreeMVCHandler getTreeHandler(String name,
                                          javax.servlet.http.HttpServletRequest request,
                                          javax.servlet.http.HttpServletResponse response)
Get the tree handler registered under a particular name.

Parameters:
name -
request -
response -
Returns:

registerTreeHandler

protected void registerTreeHandler(String name,
                                   String repository,
                                   Class<H> treeHandler,
                                   info.magnolia.cms.core.Content treeDefinition)

onRegister

protected void onRegister(info.magnolia.cms.core.Content defNode)
Specified by:
onRegister in class info.magnolia.cms.beans.config.ObservedManager

getInstance

public static <H extends AdminTreeMVCHandler> TreeHandlerManager<H> getInstance()
Returns:
Returns the instance.

onClear

protected void onClear()
Clear the handlers

Specified by:
onClear in class info.magnolia.cms.beans.config.ObservedManager


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