org.moremotion.page
Class PageManager

java.lang.Object
  extended by org.moremotion.page.PageManager
All Implemented Interfaces:
FileChangeNotification

public class PageManager
extends java.lang.Object
implements FileChangeNotification

Version:
$Id: PageManager.java 149 2008-06-11 13:35:46Z erkan $

Constructor Summary
PageManager()
           
 
Method Summary
 void doChange(java.io.File f)
           
 void doDelete(java.io.File f)
           
static PageManager getInstance()
           
static PageInfo getPageInfo(MoreMotionRequest request, java.lang.String pageName)
          Creates PageInfo object for the specified page and returns it.
static PageInfo getPageInfo(MoreMotionRequest request, java.lang.String pageName, java.lang.String variant)
          Creates PageInfo object for the specified page and variant and returns it.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PageManager

public PageManager()
Method Detail

getInstance

public static PageManager getInstance()

getPageInfo

public static PageInfo getPageInfo(MoreMotionRequest request,
                                   java.lang.String pageName)
                            throws PageGenerationException
Creates PageInfo object for the specified page and returns it. Maintains a cache for created objects so next time for the same page and the variant response is quicker.

Parameters:
request - MoreMotionRequest object
pageName - The name of the MoreMotion Page
Throws:
PageGenerationException

getPageInfo

public static PageInfo getPageInfo(MoreMotionRequest request,
                                   java.lang.String pageName,
                                   java.lang.String variant)
                            throws PageGenerationException
Creates PageInfo object for the specified page and variant and returns it. Maintains a cache for created objects so next time for the same page and the variant response is quicker.

Parameters:
request - MoreMotionRequest object
pageName - The name of the MoreMotion Page
variant - The page variant
Throws:
PageGenerationException

doChange

public void doChange(java.io.File f)
Specified by:
doChange in interface FileChangeNotification

doDelete

public void doDelete(java.io.File f)
Specified by:
doDelete in interface FileChangeNotification


Copyright © 2002-2008 MOR YAZILIM. All Rights Reserved.