Class PartialViewContextFactory
- java.lang.Object
-
- jakarta.faces.context.PartialViewContextFactory
-
- All Implemented Interfaces:
FacesWrapper<PartialViewContextFactory>
public abstract class PartialViewContextFactory extends Object implements FacesWrapper<PartialViewContextFactory>
PartialViewContextFactory is a factory object that creates (if needed) and returns new
PartialViewContextinstances.There must be one
PartialViewContextFactoryinstance per web application that is utilizing Jakarta Server Faces. This instance can be acquired, in a portable manner, by calling:PartialViewContextFactory factory = (PartialViewContextFactory) FactoryFinder.getFactory(FactoryFinder.PARTIAL_VIEW_CONTEXT_FACTORY);
Usage: extend this class and push the implementation being wrapped to the constructor and use
getWrapped()to access the instance being wrapped.- Since:
- 2.0
-
-
Constructor Summary
Constructors Constructor Description PartialViewContextFactory()Deprecated.Use the other constructor taking the implementation being wrapped.PartialViewContextFactory(PartialViewContextFactory 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 PartialViewContextgetPartialViewContext(FacesContext context)Create (if needed) and return aPartialViewContextinstance that is initialized using the currentFacesContextinstance.PartialViewContextFactorygetWrapped()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
-
PartialViewContextFactory
@Deprecated public PartialViewContextFactory()
Deprecated.Use the other constructor taking the implementation being wrapped.
-
PartialViewContextFactory
public PartialViewContextFactory(PartialViewContextFactory 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 PartialViewContextFactory 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:
getWrappedin interfaceFacesWrapper<PartialViewContextFactory>- Returns:
- the wrapped instance.
-
getPartialViewContext
public abstract PartialViewContext getPartialViewContext(FacesContext context)
Create (if needed) and return a
PartialViewContextinstance that is initialized using the currentFacesContextinstance.- Parameters:
context- theFacesContextfor the current request.- Returns:
- the
PartialViewContextas specified above
-
-