java.lang.Object
jakarta.faces.component.search.SearchExpressionContextFactory
- All Implemented Interfaces:
FacesWrapper<SearchExpressionContextFactory>
- Direct Known Subclasses:
SearchExpressionContextFactoryImpl
public abstract class SearchExpressionContextFactory
extends Object
implements FacesWrapper<SearchExpressionContextFactory>
Provide for separation of interface and implementation for the SearchExpressionContext
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.3
-
Constructor Summary
ConstructorDescriptionIf this factory has been decorated, the implementation doing the decorating should push the implementation being wrapped to this constructor. -
Method Summary
Modifier and TypeMethodDescriptionabstract SearchExpressionContext
getSearchExpressionContext
(FacesContext context, UIComponent source, Set<SearchExpressionHint> expressionHints, Set<VisitHint> visitHints) Creates aSearchExpressionContext
instance for use with theSearchExpressionHandler
.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
-
SearchExpressionContextFactory
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<SearchExpressionContextFactory>
- Returns:
- the wrapped instance.
-
getSearchExpressionContext
public abstract SearchExpressionContext getSearchExpressionContext(FacesContext context, UIComponent source, Set<SearchExpressionHint> expressionHints, Set<VisitHint> visitHints) Creates a
SearchExpressionContext
instance for use with theSearchExpressionHandler
.- Parameters:
context
- the FacesContext for the current requestsource
- the source / base component from which we will start to perform our search.expressionHints
- the SearchExpressionHint to apply to the search. Ifnull
, no hints are applied.visitHints
- the VisitHints to apply to the visit, if used by aSearchKeywordResolver
. Ifnull
, no hints are applied.- Returns:
- a
SearchExpressionContext
instance - Since:
- 2.3
-