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 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(Content defNode)
          Registers a node.
protected  void registerTreeHandler(String name, String repository, Class<H> treeHandler, Content treeDefinition)
           
 
Methods inherited from class info.magnolia.cms.beans.config.ObservedManager
clear, 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,
                                   Content treeDefinition)

onRegister

protected void onRegister(Content defNode)
Description copied from class: ObservedManager
Registers a node.

Specified by:
onRegister in class 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 ObservedManager


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