|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.facelets.FaceletFactory
com.sun.facelets.impl.DefaultFaceletFactory
public final class DefaultFaceletFactory
Default FaceletFactory implementation.
Field Summary | |
---|---|
protected static Logger |
log
|
Constructor Summary | |
---|---|
DefaultFaceletFactory(Compiler compiler,
ResourceResolver resolver)
|
|
DefaultFaceletFactory(Compiler compiler,
ResourceResolver resolver,
long refreshPeriod)
|
Method Summary | |
---|---|
Compiler |
getCompiler()
Compiler this factory uses |
Facelet |
getFacelet(String uri)
Return a Facelet instance as specified by the file at the passed URI. |
Facelet |
getFacelet(URL url)
Create a Facelet from the passed URL. |
long |
getRefreshPeriod()
|
protected boolean |
needsToBeRefreshed(com.sun.facelets.impl.DefaultFacelet facelet)
Template method for determining if the Facelet needs to be refreshed. |
URL |
resolveURL(URL source,
String path)
Resolves a path based on the passed URL. |
Methods inherited from class com.sun.facelets.FaceletFactory |
---|
getInstance, setInstance |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final Logger log
Constructor Detail |
---|
public DefaultFaceletFactory(Compiler compiler, ResourceResolver resolver) throws IOException
IOException
public DefaultFaceletFactory(Compiler compiler, ResourceResolver resolver, long refreshPeriod)
Method Detail |
---|
public Facelet getFacelet(String uri) throws IOException, FaceletException, FacesException, javax.el.ELException
FaceletFactory
getFacelet
in class FaceletFactory
IOException
FaceletException
FacesException
javax.el.ELException
public URL resolveURL(URL source, String path) throws IOException
javax.faces.context.ExternalContext#getResource(java.lang.String)
.
Otherwise create a new URL via
URL(URL, String)
.
source
- base to resolve frompath
- relative path to the source
IOException
public Facelet getFacelet(URL url) throws IOException, FaceletException, FacesException, javax.el.ELException
url
- source url
IOException
FaceletException
FacesException
javax.el.ELException
protected boolean needsToBeRefreshed(com.sun.facelets.impl.DefaultFacelet facelet)
facelet
- Facelet that could have expired
public Compiler getCompiler()
public long getRefreshPeriod()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |