com.caucho.quercus.page
Class PageManager

java.lang.Object
  extended by com.caucho.quercus.page.PageManager
Direct Known Subclasses:
ProPageManager

public class PageManager
extends java.lang.Object

Each "page" refers to a quercus file.


Field Summary
protected  LruCache<Path,QuercusProgram> _programCache
           
protected static L10N L
           
 
Constructor Summary
PageManager(Quercus quercus)
          Constructor.
 
Method Summary
protected  void clearProgram(Path path, QuercusProgram program)
           
 void close()
           
protected  QuercusPage compilePage(QuercusProgram program, Path path)
           
 Path getPwd()
          Gets the owning directory.
 Quercus getQuercus()
           
 boolean isActive()
          true if the manager is active.
 boolean isCompile()
          true if the pages should be compiled.
 boolean isCompileFailover()
           
 boolean isLazyCompile()
          true if the pages should be compiled lazily.
 QuercusPage parse(Path path)
          Returns a parsed or compiled quercus program.
 QuercusPage parse(Path path, java.lang.String fileName, int line)
          Returns a parsed or compiled quercus program.
 void setCompile(boolean isCompile)
          true if the pages should be compiled.
 void setCompileFailover(boolean isCompileFailover)
           
 void setLazyCompile(boolean isCompile)
          true if the pages should be compiled.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

L

protected static final L10N L

_programCache

protected LruCache<Path,QuercusProgram> _programCache
Constructor Detail

PageManager

public PageManager(Quercus quercus)
Constructor.

Method Detail

getQuercus

public Quercus getQuercus()

getPwd

public Path getPwd()
Gets the owning directory.


isCompile

public boolean isCompile()
true if the pages should be compiled.


setCompile

public void setCompile(boolean isCompile)
true if the pages should be compiled.


isLazyCompile

public boolean isLazyCompile()
true if the pages should be compiled lazily.


setLazyCompile

public void setLazyCompile(boolean isCompile)
true if the pages should be compiled.


isCompileFailover

public boolean isCompileFailover()

setCompileFailover

public void setCompileFailover(boolean isCompileFailover)

isActive

public boolean isActive()
true if the manager is active.


parse

public QuercusPage parse(Path path)
                  throws java.io.IOException
Returns a parsed or compiled quercus program.

Parameters:
path - the source file path
Returns:
the parsed program
Throws:
java.io.IOException

parse

public QuercusPage parse(Path path,
                         java.lang.String fileName,
                         int line)
                  throws java.io.IOException
Returns a parsed or compiled quercus program.

Parameters:
path - the source file path
Returns:
the parsed program
Throws:
java.io.IOException

clearProgram

protected void clearProgram(Path path,
                            QuercusProgram program)

compilePage

protected QuercusPage compilePage(QuercusProgram program,
                                  Path path)

close

public void close()