public class PrivateApiFaceletCacheAdapter<V> extends FaceletCache<V>
FaceletCache.MemberFactory<V>
Constructor and Description |
---|
PrivateApiFaceletCacheAdapter(FaceletCache<V> privateApi) |
Modifier and Type | Method and Description |
---|---|
V |
getFacelet(URL url)
Returns a cached Facelet instance. |
FaceletCache.MemberFactory<V> |
getMemberFactory()
Returns the |
FaceletCache.MemberFactory<V> |
getMetadataMemberFactory()
Returns the |
V |
getViewMetadataFacelet(URL url)
Returns a cached View Metadata Facelet instance. |
boolean |
isFaceletCached(URL url)
Determines whether a cached Facelet instance exists for this URL. |
boolean |
isViewMetadataFaceletCached(URL url)
Determines whether a cached View Metadata Facelet instance exists for this URL. |
void |
setMemberFactories(FaceletCache.MemberFactory<V> faceletFactory,
FaceletCache.MemberFactory<V> viewMetadataFaceletFactory)
This must be called by the runtime
at startup time, before any requests are serviced, and allows for
the |
setCacheFactories
public PrivateApiFaceletCacheAdapter(FaceletCache<V> privateApi)
public V getFacelet(URL url) throws IOException
FaceletCache
Returns a cached Facelet
instance. If no instance is available, it will be created using
the Facelet FaceletCache.MemberFactory
and stored in the cache.
getFacelet
in class FaceletCache<V>
url
- URL
for the Facelet being retrievedFacelet
IOException
- if unable to load a file necessary to respond
to service this method.public V getViewMetadataFacelet(URL url) throws IOException
FaceletCache
Returns a cached View Metadata
Facelet instance. If no instance is available, it will be created
using the View Metadata Facelet FaceletCache.MemberFactory
and stored
in the cache.
getViewMetadataFacelet
in class FaceletCache<V>
url
- URL
for the View Metadata Facelet being
retrievedFacelet
instanceIOException
- if unable to load a file necessary to respond
to service this method.public boolean isFaceletCached(URL url)
FaceletCache
Determines whether a cached Facelet instance exists for this URL. Returns true if a cached instance exists, false otherwise
isFaceletCached
in class FaceletCache<V>
url
- URL
for the Faceletpublic boolean isViewMetadataFaceletCached(URL url)
FaceletCache
Determines whether a cached View Metadata Facelet instance exists for this URL. Returns true if a cached instance exists, false otherwise
isViewMetadataFaceletCached
in class FaceletCache<V>
url
- URL
for the View Metadata Faceletpublic void setMemberFactories(FaceletCache.MemberFactory<V> faceletFactory, FaceletCache.MemberFactory<V> viewMetadataFaceletFactory)
FaceletCache
This must be called by the runtime
at startup time, before any requests are serviced, and allows for
the FaceletCache
implementation to provide the
FaceletCache.MemberFactory
instances that will be used to create
instances of Facelets and View Metadata Facelets.
setMemberFactories
in class FaceletCache<V>
faceletFactory
- the FaceletCache.MemberFactory
instance that
will be used to create instances of Facelets.viewMetadataFaceletFactory
- the FaceletCache.MemberFactory
instance that will be used to create instances of metadata
Facelets.public FaceletCache.MemberFactory<V> getMemberFactory()
FaceletCache
Returns the FaceletCache.MemberFactory
passed to FaceletCache.setMemberFactories(javax.faces.view.facelets.FaceletCache.MemberFactory<V>, javax.faces.view.facelets.FaceletCache.MemberFactory<V>)
for the purpose of creating
Facelet instance.
getMemberFactory
in class FaceletCache<V>
FaceletCache.MemberFactory
passed to FaceletCache.setMemberFactories(javax.faces.view.facelets.FaceletCache.MemberFactory<V>, javax.faces.view.facelets.FaceletCache.MemberFactory<V>)
for the purpose of creating
Facelet instance.public FaceletCache.MemberFactory<V> getMetadataMemberFactory()
FaceletCache
Returns the FaceletCache.MemberFactory
passed to FaceletCache.setMemberFactories(javax.faces.view.facelets.FaceletCache.MemberFactory<V>, javax.faces.view.facelets.FaceletCache.MemberFactory<V>)
for the purpose of creating
View Metadata Facelet instance.
getMetadataMemberFactory
in class FaceletCache<V>
FaceletCache.MemberFactory
passed to FaceletCache.setMemberFactories(javax.faces.view.facelets.FaceletCache.MemberFactory<V>, javax.faces.view.facelets.FaceletCache.MemberFactory<V>)
for the purpose of creating
View Metadata Facelet instance.Comments to: faces-dev@eclipse.org.
Copyright © 2019 Eclipse Foundation. All rights reserved.
Use is subject to license terms.