java.lang.Object
jakarta.faces.component.visit.VisitContextFactory
- All Implemented Interfaces:
FacesWrapper<VisitContextFactory>
- Direct Known Subclasses:
VisitContextFactoryImpl
public abstract class VisitContextFactory
extends Object
implements FacesWrapper<VisitContextFactory>
Provide for separation of interface and implementation for the
VisitContext
contract.
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.VisitContextFactory
(VisitContextFactory 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 VisitContext
getVisitContext
(FacesContext context, Collection<String> ids, Set<VisitHint> hints) Return a newVisitContext
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
-
VisitContextFactory
Deprecated.Use the other constructor taking the implementation being wrapped. -
VisitContextFactory
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<VisitContextFactory>
- Returns:
- the wrapped instance.
-
getVisitContext
public abstract VisitContext getVisitContext(FacesContext context, Collection<String> ids, Set<VisitHint> hints) Return a new
VisitContext
instance.- Parameters:
context
- theFacesContext
for this request.ids
- aCollection
of clientIds to visit. Ifnull
all components will be visited.hints
- theVisitHints
that apply to this visit.- Returns:
- the instance of
VisitContext
. - Since:
- 2.0
-