- All Implemented Interfaces:
FacesWrapper<PartialViewContextFactory>
- Direct Known Subclasses:
PartialViewContextFactoryImpl
PartialViewContextFactory is a factory object that creates (if needed) and
returns new PartialViewContext
instances.
There must be one PartialViewContextFactory
instance 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
ConstructorDescriptionDeprecated.Use the other constructor taking the implementation being wrapped.If this factory has been decorated, the implementation doing the decorating should push the implementation being wrapped to this constructor. -
Method Summary
Modifier and TypeMethodDescriptionabstract PartialViewContext
getPartialViewContext
(FacesContext context) Create (if needed) and return aPartialViewContext
instance that is initialized using the currentFacesContext
instance.If this factory has been decorated, the implementation doing the decorating may override this method to provide access to the implementation being wrapped.
-
Constructor Details
-
PartialViewContextFactory
Deprecated.Use the other constructor taking the implementation being wrapped. -
PartialViewContextFactory
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 Details
-
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<PartialViewContextFactory>
- Returns:
- the wrapped instance.
-
getPartialViewContext
Create (if needed) and return a
PartialViewContext
instance that is initialized using the currentFacesContext
instance.- Parameters:
context
- theFacesContext
for the current request.- Returns:
- the
PartialViewContext
as specified above
-