public class DefaultFaceletFactory extends Object
Constructor and Description |
---|
DefaultFaceletFactory() |
DefaultFaceletFactory(Compiler compiler,
ResourceResolver resolver) |
DefaultFaceletFactory(Compiler compiler,
ResourceResolver resolver,
long refreshPeriod) |
DefaultFaceletFactory(Compiler compiler,
ResourceResolver resolver,
long refreshPeriod,
FaceletCache cache) |
Modifier and Type | Method and Description |
---|---|
UIComponent |
_createComponent(FacesContext context,
String taglibURI,
String tagName,
Map<String,Object> attributes) |
Facelet |
getFacelet(FacesContext context,
String uri) |
Facelet |
getFacelet(FacesContext context,
URL url)
Create a Facelet from the passed URL.
|
Facelet |
getMetadataFacelet(FacesContext context,
String uri) |
Facelet |
getMetadataFacelet(FacesContext context,
URL url) |
long |
getRefreshPeriod() |
ResourceResolver |
getResourceResolver() |
void |
init(Compiler compiler,
ResourceResolver resolver,
long refreshPeriod,
FaceletCache cache) |
boolean |
needsToBeRefreshed(URL url) |
URL |
resolveURL(URL source,
String path)
Resolves a path based on the passed URL.
|
protected static final Logger log
public DefaultFaceletFactory()
public DefaultFaceletFactory(Compiler compiler, ResourceResolver resolver) throws IOException
IOException
public DefaultFaceletFactory(Compiler compiler, ResourceResolver resolver, long refreshPeriod)
public DefaultFaceletFactory(Compiler compiler, ResourceResolver resolver, long refreshPeriod, FaceletCache cache)
public final void init(Compiler compiler, ResourceResolver resolver, long refreshPeriod, FaceletCache cache)
public ResourceResolver getResourceResolver()
public Facelet getFacelet(FacesContext context, String uri) throws IOException
IOException
public Facelet getMetadataFacelet(FacesContext context, String uri) throws IOException
IOException
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 sourceIOException
public Facelet getFacelet(FacesContext context, URL url) throws IOException
url
- source urlIOException
FaceletException
FacesException
javax.el.ELException
public Facelet getMetadataFacelet(FacesContext context, URL url) throws IOException
IOException
public boolean needsToBeRefreshed(URL url)
public UIComponent _createComponent(FacesContext context, String taglibURI, String tagName, Map<String,Object> attributes)
public long getRefreshPeriod()
Comments to: faces-dev@eclipse.org.
Copyright © 2019 Eclipse Foundation. All rights reserved.
Use is subject to license terms.