Package jakarta.faces.view.facelets
Class FaceletCacheFactory
- java.lang.Object
-
- jakarta.faces.view.facelets.FaceletCacheFactory
-
- All Implemented Interfaces:
FacesWrapper<FaceletCacheFactory>
public abstract class FaceletCacheFactory extends Object implements FacesWrapper<FaceletCacheFactory>
Allows customization of the implementation of
FaceletCache
.Usage: extend this class and push the implementation being wrapped to the constructor and use
getWrapped()
to access the instance being wrapped.- Since:
- 2.1
-
-
Constructor Summary
Constructors Constructor Description FaceletCacheFactory()
Deprecated.Use the other constructor taking the implementation being wrapped.FaceletCacheFactory(FaceletCacheFactory wrapped)
If this factory has been decorated, the implementation doing the decorating should push the implementation being wrapped to this constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract FaceletCache
getFaceletCache()
Returns the facility by which the FaceletsViewDeclarationLanguage
creates and caches instances of Facelets.FaceletCacheFactory
getWrapped()
If this factory has been decorated, the implementation doing the decorating may override this method to provide access to the implementation being wrapped.
-
-
-
Constructor Detail
-
FaceletCacheFactory
@Deprecated public FaceletCacheFactory()
Deprecated.Use the other constructor taking the implementation being wrapped.
-
FaceletCacheFactory
public FaceletCacheFactory(FaceletCacheFactory wrapped)
If this factory has been decorated, the implementation doing the decorating should push the implementation being wrapped to this constructor. The
getWrapped()
will then return the implementation being wrapped.- Parameters:
wrapped
- The implementation being wrapped.
-
-
Method Detail
-
getWrapped
public FaceletCacheFactory getWrapped()
If this factory has been decorated, the implementation doing the decorating may override this method to provide access to the implementation being wrapped.
- Specified by:
getWrapped
in interfaceFacesWrapper<FaceletCacheFactory>
- Returns:
- the wrapped instance.
-
getFaceletCache
public abstract FaceletCache getFaceletCache()
Returns the facility by which the FaceletsViewDeclarationLanguage
creates and caches instances of Facelets.- Returns:
- the facelet cache
-
-