public abstract class SearchExpressionContextFactory extends java.lang.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.
Constructor and Description |
---|
SearchExpressionContextFactory(SearchExpressionContextFactory 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 SearchExpressionContext |
getSearchExpressionContext(FacesContext context,
UIComponent source,
java.util.Set<SearchExpressionHint> expressionHints,
java.util.Set<VisitHint> visitHints)
Creates a |
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. |
public 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.
wrapped
- The implementation being wrapped.public 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.
getWrapped
in interface FacesWrapper<SearchExpressionContextFactory>
public abstract SearchExpressionContext getSearchExpressionContext(FacesContext context, UIComponent source, java.util.Set<SearchExpressionHint> expressionHints, java.util.Set<VisitHint> visitHints)
Creates a SearchExpressionContext
instance for use with the SearchExpressionHandler
.
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. 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.SearchExpressionContext
instance