Package org.apache.myfaces.view.facelets
Class AbstractFaceletCache<V>
java.lang.Object
jakarta.faces.view.facelets.FaceletCache<V>
org.apache.myfaces.view.facelets.AbstractFaceletCache<V>
- Type Parameters:
- V-
Extended FaceletCache contract that supports additional Myfaces specific concepts
 that are necessary to implement.
- Since:
- 2.1.12
- Author:
- Leonardo Uribe
- 
Nested Class SummaryNested classes/interfaces inherited from class jakarta.faces.view.facelets.FaceletCacheFaceletCache.MemberFactory<V extends Object>
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionabstract VRetrieve or create a Facelet instance used to create composite component metadata from the cache.protected FaceletCache.MemberFactory<V>getFacelet(FaceletContext ctx, URL url) Retrieve a Facelet instance from the cache given the passed url, but taking into account the facelet context too, so the cache can implement special rules according to the context for recompile the facelet if necessary.abstract booleanCheck if the composite component metadata facelet associated with the url is cached or not.voidsetCacheFactories(FaceletCache.MemberFactory<V> faceletFactory, FaceletCache.MemberFactory<V> viewMetadataFaceletFactory, FaceletCache.MemberFactory<V> compositeComponentMetadataFaceletFactory) protected voidsetMemberFactories(FaceletCache.MemberFactory<V> faceletFactory, FaceletCache.MemberFactory<V> viewMetadataFaceletFactory, FaceletCache.MemberFactory<V> compositeComponentMetadataFaceletFactory) Set the factories used for create Facelet instances.Methods inherited from class jakarta.faces.view.facelets.FaceletCachegetFacelet, getMemberFactory, getMetadataMemberFactory, getViewMetadataFacelet, isFaceletCached, isViewMetadataFaceletCached, setCacheFactories
- 
Constructor Details- 
AbstractFaceletCachepublic AbstractFaceletCache()
 
- 
- 
Method Details- 
getFaceletRetrieve a Facelet instance from the cache given the passed url, but taking into account the facelet context too, so the cache can implement special rules according to the context for recompile the facelet if necessary.- Parameters:
- ctx-
- url-
- Returns:
- Throws:
- IOException
 
- 
getCompositeComponentMetadataFaceletRetrieve or create a Facelet instance used to create composite component metadata from the cache.- Parameters:
- url-
- Returns:
- Throws:
- IOException
 
- 
isCompositeComponentMetadataFaceletCachedCheck if the composite component metadata facelet associated with the url is cached or not.- Parameters:
- url-
- Returns:
 
- 
setMemberFactoriesprotected void setMemberFactories(FaceletCache.MemberFactory<V> faceletFactory, FaceletCache.MemberFactory<V> viewMetadataFaceletFactory, FaceletCache.MemberFactory<V> compositeComponentMetadataFaceletFactory) Set the factories used for create Facelet instances.- Parameters:
- faceletFactory-
- viewMetadataFaceletFactory-
- compositeComponentMetadataFaceletFactory-
 
- 
getCompositeComponentMetadataMemberFactory- Returns:
 
- 
setCacheFactoriespublic void setCacheFactories(FaceletCache.MemberFactory<V> faceletFactory, FaceletCache.MemberFactory<V> viewMetadataFaceletFactory, FaceletCache.MemberFactory<V> compositeComponentMetadataFaceletFactory) - Parameters:
- faceletFactory-
- viewMetadataFaceletFactory-
- compositeComponentMetadataFaceletFactory-
- Since:
- 2.3
 
 
-