|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfc.web.page.PageMgr
public final class PageMgr
Manages pages. Pages are found below a web document root directory. Pages are compiled as needed and the resulting class file is loaded/run. If a page is changed, it is automatically recompiled, reloaded and rerun. If the page has a compilation error, that page remains unloaded until the error is fixed.
A new PageMgr should be instantiated for each unique root directory (for example with multiple virtual hosts or users, each having their own root directory).
Constructor Summary | |
---|---|
PageMgr(PageServlet servlet,
java.io.File docroot,
java.io.File scratchdir,
Log log)
Constructs a new Page manager. |
Method Summary | |
---|---|
Page |
getPage(java.lang.String contextRelativePath)
Returns the Page corresponding the the page path. |
static void |
main(java.lang.String[] args)
Interactive page manager use/testing. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PageMgr(PageServlet servlet, java.io.File docroot, java.io.File scratchdir, Log log)
servlet
- the Molly Servlet. This is optional and can be
null when creating/testing the PageMgr from
the command line.docroot
- absolute path to the document root directory within
which the pages are found. This is the directory that
correspond to the "/" location of the webapp.scratchdir
- absolute path to a scratch dirctory where intermediate
and temporary files can be written. This is where the
translated page-->java file will be created.log
- a logging destination.Method Detail |
---|
public Page getPage(java.lang.String contextRelativePath) throws java.lang.Exception
Page
corresponding the the page path.
java.lang.Exception
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |