public final class DefaultFaceletFactory extends FaceletFactory
| Constructor and Description |
|---|
DefaultFaceletFactory(Compiler compiler,
ResourceResolver resolver) |
DefaultFaceletFactory(Compiler compiler,
ResourceResolver resolver,
long refreshPeriod) |
| Modifier and Type | Method and Description |
|---|---|
Compiler |
getCompiler()
Compiler this factory uses
|
Facelet |
getCompositeComponentMetadataFacelet(String uri)
Works in the same way as getFacelet(String uri), but redirect
to getViewMetadataFacelet(URL url)
|
Facelet |
getCompositeComponentMetadataFacelet(URL url)
Create a Facelet used to create composite component metadata from the passed URL.
|
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() |
Facelet |
getViewMetadataFacelet(String uri)
Works in the same way as getFacelet(String uri), but redirect
to getViewMetadataFacelet(URL url)
|
Facelet |
getViewMetadataFacelet(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.
|
URL |
resolveURL(URL source,
String path)
Resolves a path based on the passed URL.
|
getInstance, setInstanceprotected final Logger log
public DefaultFaceletFactory(Compiler compiler, ResourceResolver resolver) throws IOException
IOExceptionpublic DefaultFaceletFactory(Compiler compiler, ResourceResolver resolver, long refreshPeriod)
public Compiler getCompiler()
public Facelet getFacelet(String uri) throws IOException, FaceletException, FacesException, javax.el.ELException
FaceletFactorygetFacelet in class FaceletFactoryIOExceptionFaceletExceptionFacesExceptionjavax.el.ELExceptionpublic Facelet getFacelet(URL url) throws IOException, FaceletException, FacesException, javax.el.ELException
getFacelet in class FaceletFactoryurl - source urlIOExceptionFaceletExceptionFacesExceptionjavax.el.ELExceptionpublic long getRefreshPeriod()
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 sourceIOExceptionprotected boolean needsToBeRefreshed(org.apache.myfaces.view.facelets.impl.DefaultFacelet facelet)
facelet - Facelet that could have expiredpublic Facelet getViewMetadataFacelet(String uri) throws IOException
getViewMetadataFacelet in class FaceletFactoryIOExceptionpublic Facelet getViewMetadataFacelet(URL url) throws IOException, FaceletException, FacesException, javax.el.ELException
FaceletFactorygetViewMetadataFacelet in class FaceletFactoryurl - source urlIOExceptionFaceletExceptionFacesExceptionjavax.el.ELExceptionpublic Facelet getCompositeComponentMetadataFacelet(String uri) throws IOException
getCompositeComponentMetadataFacelet in class FaceletFactoryIOExceptionpublic Facelet getCompositeComponentMetadataFacelet(URL url) throws IOException, FaceletException, FacesException, javax.el.ELException
FaceletFactorygetCompositeComponentMetadataFacelet in class FaceletFactoryurl - source urlIOExceptionFaceletExceptionFacesExceptionjavax.el.ELExceptionCopyright © 2016 The Apache Software Foundation. All Rights Reserved.