de.matthias_burbach.mosaique.core.model
Class JspResolver

java.lang.Object
  extended byde.matthias_burbach.mosaique.core.model.JspResolver

public class JspResolver
extends java.lang.Object

Author:
Matthias Burbach

Constructor Summary
JspResolver(PathFinder pathFinder, Context context)
           
 
Method Summary
 void clear()
          Clears the internal map of already resolved JSPs.
static JspResolver getInstance()
           
 Jsp resolve(java.lang.String relativePath)
           
 void setRoot(java.lang.String root)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JspResolver

public JspResolver(PathFinder pathFinder,
                   Context context)
Parameters:
pathFinder - The optional path finder to map relative paths to absolute paths. Was introduced with the port to Eclipse where path logic is more complicated.
context - The context to use by this instance.
Method Detail

getInstance

public static JspResolver getInstance()
Returns:
The singleton instance of this class.

setRoot

public void setRoot(java.lang.String root)
Parameters:
root - The absolute path of the web application's document root to prepend to relative JSP paths.

clear

public void clear()
Clears the internal map of already resolved JSPs.


resolve

public Jsp resolve(java.lang.String relativePath)
Parameters:
relativePath - The relative path of a JSP to resolve.
Returns:
The JSP resolved or null.


Copyright © 2005-2006 . All Rights Reserved.