public abstract class PartialViewContextFactory extends java.lang.Object implements FacesWrapper<PartialViewContextFactory>
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.
Constructor and 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. |
Modifier and Type | Method and Description |
---|---|
abstract PartialViewContext |
getPartialViewContext(FacesContext context)
Create (if needed)
and return a
PartialViewContext instance that is initialized
using the current FacesContext instance. |
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. |
@Deprecated public 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.
wrapped
- The implementation being wrapped.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.
getWrapped
in interface FacesWrapper<PartialViewContextFactory>
public abstract PartialViewContext getPartialViewContext(FacesContext context)
Create (if needed)
and return a PartialViewContext
instance that is initialized
using the current FacesContext
instance.
context
- the FacesContext
for the current request.PartialViewContext
as specified above