java.lang.Object
com.sun.facelets.FaceletFactory
com.sun.facelets.impl.DefaultFaceletFactory
- public final class DefaultFaceletFactory
- extends com.sun.facelets.FaceletFactory
Default FaceletFactory implementation.
- Version:
- $Id: DefaultFaceletFactory.java,v 1.8 2006/05/03 04:30:13 jhook Exp $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected static final java.util.logging.Logger log
compiler
private final com.sun.facelets.compiler.Compiler compiler
facelets
private final java.util.Map facelets
relativeLocations
private final java.util.Map relativeLocations
resolver
private final ResourceResolver resolver
baseUrl
private final java.net.URL baseUrl
refreshPeriod
private final long refreshPeriod
DefaultFaceletFactory
public DefaultFaceletFactory(com.sun.facelets.compiler.Compiler compiler,
ResourceResolver resolver)
throws java.io.IOException
DefaultFaceletFactory
public DefaultFaceletFactory(com.sun.facelets.compiler.Compiler compiler,
ResourceResolver resolver,
long refreshPeriod)
getFacelet
public com.sun.facelets.Facelet getFacelet(java.lang.String uri)
throws java.io.IOException,
com.sun.facelets.FaceletException,
javax.faces.FacesException,
ELException
- Description copied from class:
com.sun.facelets.FaceletFactory
- Return a Facelet instance as specified by the file at the passed URI.
resolveURL
public java.net.URL resolveURL(java.net.URL source,
java.lang.String path)
throws java.io.IOException
- Resolves a path based on the passed URL. If the path starts with '/',
then resolve the path against
javax.faces.context.ExternalContext#getResource(java.lang.String) 55 .
Otherwise create a new URL via
URL(URL, String) 55 .
getFacelet
public com.sun.facelets.Facelet getFacelet(java.net.URL url)
throws java.io.IOException,
com.sun.facelets.FaceletException,
javax.faces.FacesException,
ELException
- Create a Facelet from the passed URL. This method checks if the cached
Facelet needs to be refreshed before returning. If so, uses the passed
URL to build a new instance;
needsToBeRefreshed
protected boolean needsToBeRefreshed(DefaultFacelet facelet)
- Template method for determining if the Facelet needs to be refreshed.
createFacelet
private DefaultFacelet createFacelet(java.net.URL url)
throws java.io.IOException,
com.sun.facelets.FaceletException,
javax.faces.FacesException,
ELException
- Uses the internal Compiler reference to build a Facelet given the passed
URL.
getCompiler
public com.sun.facelets.compiler.Compiler getCompiler()
- Compiler this factory uses
getRefreshPeriod
public long getRefreshPeriod()