|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.myfaces.view.facelets.FaceletFactory
org.apache.myfaces.view.facelets.impl.DefaultFaceletFactory
public final class DefaultFaceletFactory
Default FaceletFactory implementation.
Field Summary | |
---|---|
protected java.util.logging.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 |
getCompositeComponentMetadataFacelet(java.lang.String uri)
Works in the same way as getFacelet(String uri), but redirect to getViewMetadataFacelet(URL url) |
Facelet |
getCompositeComponentMetadataFacelet(java.net.URL url)
Create a Facelet used to create composite component metadata from the passed URL. |
Facelet |
getFacelet(java.lang.String uri)
Return a Facelet instance as specified by the file at the passed URI. |
Facelet |
getFacelet(java.net.URL url)
Create a Facelet from the passed URL. |
long |
getRefreshPeriod()
|
Facelet |
getViewMetadataFacelet(java.lang.String uri)
Works in the same way as getFacelet(String uri), but redirect to getViewMetadataFacelet(URL url) |
Facelet |
getViewMetadataFacelet(java.net.URL url)
Create a Facelet used to create view metadata from the passed URL. |
protected boolean |
needsToBeRefreshed(org.apache.myfaces.view.facelets.impl.DefaultFacelet facelet)
Template method for determining if the Facelet needs to be refreshed. |
java.net.URL |
resolveURL(java.net.URL source,
java.lang.String path)
Resolves a path based on the passed URL. |
Methods inherited from class org.apache.myfaces.view.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 final java.util.logging.Logger log
Constructor Detail |
---|
public DefaultFaceletFactory(Compiler compiler, ResourceResolver resolver) throws java.io.IOException
java.io.IOException
public DefaultFaceletFactory(Compiler compiler, ResourceResolver resolver, long refreshPeriod)
Method Detail |
---|
public Compiler getCompiler()
public Facelet getFacelet(java.lang.String uri) throws java.io.IOException, FaceletException, FacesException, javax.el.ELException
FaceletFactory
getFacelet
in class FaceletFactory
java.io.IOException
FaceletException
FacesException
javax.el.ELException
public Facelet getFacelet(java.net.URL url) throws java.io.IOException, FaceletException, FacesException, javax.el.ELException
getFacelet
in class FaceletFactory
url
- source url
java.io.IOException
FaceletException
FacesException
javax.el.ELException
public long getRefreshPeriod()
public java.net.URL resolveURL(java.net.URL source, java.lang.String path) throws java.io.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
java.io.IOException
protected boolean needsToBeRefreshed(org.apache.myfaces.view.facelets.impl.DefaultFacelet facelet)
facelet
- Facelet that could have expired
public Facelet getViewMetadataFacelet(java.lang.String uri) throws java.io.IOException
getViewMetadataFacelet
in class FaceletFactory
java.io.IOException
public Facelet getViewMetadataFacelet(java.net.URL url) throws java.io.IOException, FaceletException, FacesException, javax.el.ELException
FaceletFactory
getViewMetadataFacelet
in class FaceletFactory
url
- source url
java.io.IOException
FaceletException
FacesException
javax.el.ELException
public Facelet getCompositeComponentMetadataFacelet(java.lang.String uri) throws java.io.IOException
getCompositeComponentMetadataFacelet
in class FaceletFactory
java.io.IOException
public Facelet getCompositeComponentMetadataFacelet(java.net.URL url) throws java.io.IOException, FaceletException, FacesException, javax.el.ELException
FaceletFactory
getCompositeComponentMetadataFacelet
in class FaceletFactory
url
- source url
java.io.IOException
FaceletException
FacesException
javax.el.ELException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |