Package jakarta.faces.component.search
Class SearchExpressionContextFactory
- java.lang.Object
- 
- jakarta.faces.component.search.SearchExpressionContextFactory
 
- 
- All Implemented Interfaces:
- FacesWrapper<SearchExpressionContextFactory>
 
 public abstract class SearchExpressionContextFactory extends Object implements FacesWrapper<SearchExpressionContextFactory> Provide for separation of interface and implementation for the SearchExpressionContextcontract. Usage: extend this class and push the implementation being wrapped to the constructor and usegetWrapped()to access the instance being wrapped.- Since:
- 2.3
 
- 
- 
Constructor SummaryConstructors Constructor Description SearchExpressionContextFactory(SearchExpressionContextFactory wrapped)If this factory has been decorated, the implementation doing the decorating should push the implementation being wrapped to this constructor.
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract SearchExpressionContextgetSearchExpressionContext(FacesContext context, UIComponent source, Set<SearchExpressionHint> expressionHints, Set<VisitHint> visitHints)Creates aSearchExpressionContextinstance for use with theSearchExpressionHandler.SearchExpressionContextFactorygetWrapped()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- 
SearchExpressionContextFactorypublic SearchExpressionContextFactory(SearchExpressionContextFactory 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- 
getWrappedpublic SearchExpressionContextFactory 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 interface- FacesWrapper<SearchExpressionContextFactory>
- Returns:
- the wrapped instance.
 
 - 
getSearchExpressionContextpublic abstract SearchExpressionContext getSearchExpressionContext(FacesContext context, UIComponent source, Set<SearchExpressionHint> expressionHints, Set<VisitHint> visitHints) Creates a SearchExpressionContextinstance for use with theSearchExpressionHandler.- Parameters:
- context- the FacesContext for the current request
- source- the source / base component from which we will start to perform our search.
- expressionHints- the SearchExpressionHint to apply to the search. If- null, no hints are applied.
- visitHints- the VisitHints to apply to the visit, if used by a- SearchKeywordResolver. If- null, no hints are applied.
- Returns:
- a SearchExpressionContextinstance
- Since:
- 2.3
 
 
- 
 
-