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 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()
          The implementor should clear everthing.
protected  void onRegister(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, 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(Content defNode)
register the pages from the config

Specified by:
onRegister in class 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()
Description copied from class: ObservedManager
The implementor should clear everthing. If needed the nodes will get registered.

Specified by:
onClear in class ObservedManager


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