info.magnolia.module.admininterface
Class PageHandlerManager

java.lang.Object
  extended by info.magnolia.cms.beans.config.ObservedManager
      extended by info.magnolia.module.admininterface.PageHandlerManager

@Singleton
public class PageHandlerManager
extends info.magnolia.cms.beans.config.ObservedManager

Manages the page handlers. A page is a very simple dialog without any configuration.

Author:
philipp

Nested Class Summary
static class PageHandlerManager.BasePageDefinition
          This class is used if you want to register a page that is not stored in the repository.
static interface PageHandlerManager.PageDefinition
           
static class PageHandlerManager.RepositoryPageDefinition
           
 
Field Summary
 
Fields inherited from class info.magnolia.cms.beans.config.ObservedManager
log, registeredUUIDs
 
Constructor Summary
PageHandlerManager()
           
 
Method Summary
static PageHandlerManager getInstance()
           
 PageMVCHandler getPageHandler(String name, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Find a handler by name
protected  void onClear()
           
protected  void onRegister(info.magnolia.cms.core.Content defNode)
          register the pages from the config
 void registerPageDefinition(PageHandlerManager.PageDefinition pageDefinition)
           
 void registerPageDefinition(String name, PageHandlerManager.PageDefinition pageDefinition)
          Deprecated.  
 
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

PageHandlerManager

public PageHandlerManager()
Method Detail

getPageHandler

public PageMVCHandler getPageHandler(String name,
                                     javax.servlet.http.HttpServletRequest request,
                                     javax.servlet.http.HttpServletResponse response)
Find a handler by name

Parameters:
name -
request -
response -
Returns:
an instance of the handlers

onRegister

protected void onRegister(info.magnolia.cms.core.Content defNode)
register the pages from the config

Specified by:
onRegister in class info.magnolia.cms.beans.config.ObservedManager
Parameters:
defNode -

registerPageDefinition

public void registerPageDefinition(PageHandlerManager.PageDefinition pageDefinition)

registerPageDefinition

public void registerPageDefinition(String name,
                                   PageHandlerManager.PageDefinition pageDefinition)
Deprecated. 


getInstance

public static PageHandlerManager getInstance()
Returns:
Returns the instance.

onClear

protected void onClear()
Specified by:
onClear in class info.magnolia.cms.beans.config.ObservedManager


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