close

Filter

loading table of contents...

Headless Server Developer Manual / Version 2010

Table Of Contents

4.5 Filter Predicates

A filter predicate can be used to filter beans by predicate.

For example, a validity date filter predicate can be defined to filter content items by their validity date.

      
@Bean
@Qualifier("filterPredicate")
public Predicate<Object> validityDateFilterPredicate() {
  return new ValidityDateFilterPredicate();
}

    

Example 4.2. Creating a filter predicate


Beans with Qualifier filterPredicate are picked up automatically and applied to ModelMappers.

Search Results

Table Of Contents