Class PrivateApiFaceletCacheAdapter<V>
public class PrivateApiFaceletCacheAdapter<V> extends FaceletCache<V>
-
Nested Class Summary
Nested classes/interfaces inherited from class jakarta.faces.view.facelets.FaceletCache
FaceletCache.MemberFactory<V> -
Constructor Summary
Constructors Constructor Description PrivateApiFaceletCacheAdapter(FaceletCache<V> privateApi) -
Method Summary
Modifier and Type Method Description VgetFacelet(URL url)Returns a cached Facelet instance.FaceletCache.MemberFactory<V>getMemberFactory()Returns theFaceletCache.MemberFactorypassed toFaceletCache.setMemberFactories(jakarta.faces.view.facelets.FaceletCache.MemberFactory<V>, jakarta.faces.view.facelets.FaceletCache.MemberFactory<V>)for the purpose of creating Facelet instance.FaceletCache.MemberFactory<V>getMetadataMemberFactory()Returns theFaceletCache.MemberFactorypassed toFaceletCache.setMemberFactories(jakarta.faces.view.facelets.FaceletCache.MemberFactory<V>, jakarta.faces.view.facelets.FaceletCache.MemberFactory<V>)for the purpose of creating View Metadata Facelet instance.VgetViewMetadataFacelet(URL url)Returns a cached View Metadata Facelet instance.booleanisFaceletCached(URL url)Determines whether a cached Facelet instance exists for this URL.booleanisViewMetadataFaceletCached(URL url)Determines whether a cached View Metadata Facelet instance exists for this URL.voidsetMemberFactories(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 theFaceletCacheimplementation to provide theFaceletCache.MemberFactoryinstances that will be used to create instances of Facelets and View Metadata Facelets.
-
Constructor Details
-
Method Details
-
getFacelet
Description copied from class:FaceletCacheReturns a cached Facelet instance. If no instance is available, it will be created using the Facelet
FaceletCache.MemberFactoryand stored in the cache.- Specified by:
getFaceletin classFaceletCache<V>- Parameters:
url-URLfor the Facelet being retrieved- Returns:
- a cached or new
Facelet - Throws:
IOException- if unable to load a file necessary to respond to service this method.
-
getViewMetadataFacelet
Description copied from class:FaceletCacheReturns a cached View Metadata Facelet instance. If no instance is available, it will be created using the View Metadata Facelet
FaceletCache.MemberFactoryand stored in the cache.- Specified by:
getViewMetadataFaceletin classFaceletCache<V>- Parameters:
url-URLfor the View Metadata Facelet being retrieved- Returns:
- a cached or new View Metadata
Faceletinstance - Throws:
IOException- if unable to load a file necessary to respond to service this method.
-
isFaceletCached
Description copied from class:FaceletCacheDetermines whether a cached Facelet instance exists for this URL. Returns true if a cached instance exists, false otherwise
- Specified by:
isFaceletCachedin classFaceletCache<V>- Parameters:
url-URLfor the Facelet- Returns:
- true if a cached instance exists, false otherwise
-
isViewMetadataFaceletCached
Description copied from class:FaceletCacheDetermines whether a cached View Metadata Facelet instance exists for this URL. Returns true if a cached instance exists, false otherwise
- Specified by:
isViewMetadataFaceletCachedin classFaceletCache<V>- Parameters:
url-URLfor the View Metadata Facelet- Returns:
- true if a cached instance exists, false otherwise
-
setMemberFactories
public void setMemberFactories(FaceletCache.MemberFactory<V> faceletFactory, FaceletCache.MemberFactory<V> viewMetadataFaceletFactory)Description copied from class:FaceletCacheThis must be called by the runtime at startup time, before any requests are serviced, and allows for the
FaceletCacheimplementation to provide theFaceletCache.MemberFactoryinstances that will be used to create instances of Facelets and View Metadata Facelets.- Overrides:
setMemberFactoriesin classFaceletCache<V>- Parameters:
faceletFactory- theFaceletCache.MemberFactoryinstance that will be used to create instances of Facelets.viewMetadataFaceletFactory- theFaceletCache.MemberFactoryinstance that will be used to create instances of metadata Facelets.
-
getMemberFactory
Description copied from class:FaceletCacheReturns the
FaceletCache.MemberFactorypassed toFaceletCache.setMemberFactories(jakarta.faces.view.facelets.FaceletCache.MemberFactory<V>, jakarta.faces.view.facelets.FaceletCache.MemberFactory<V>)for the purpose of creating Facelet instance.- Overrides:
getMemberFactoryin classFaceletCache<V>- Returns:
- the
FaceletCache.MemberFactorypassed toFaceletCache.setMemberFactories(jakarta.faces.view.facelets.FaceletCache.MemberFactory<V>, jakarta.faces.view.facelets.FaceletCache.MemberFactory<V>)for the purpose of creating Facelet instance.
-
getMetadataMemberFactory
Description copied from class:FaceletCacheReturns the
FaceletCache.MemberFactorypassed toFaceletCache.setMemberFactories(jakarta.faces.view.facelets.FaceletCache.MemberFactory<V>, jakarta.faces.view.facelets.FaceletCache.MemberFactory<V>)for the purpose of creating View Metadata Facelet instance.- Overrides:
getMetadataMemberFactoryin classFaceletCache<V>- Returns:
- the
FaceletCache.MemberFactorypassed toFaceletCache.setMemberFactories(jakarta.faces.view.facelets.FaceletCache.MemberFactory<V>, jakarta.faces.view.facelets.FaceletCache.MemberFactory<V>)for the purpose of creating View Metadata Facelet instance.
-