Package nbbrd.service

Annotation Type ServiceFilter


@Documented @Target(METHOD) @Retention(SOURCE) public @interface ServiceFilter
Specifies that a method must be used as a filter on a service. This annotation must be used in conjunction with ServiceDefinition.

The annotated method must follow the following rules:

  1. Filter method only applies to methods of a service
  2. Filter method does not apply to static methods
  3. Filter method must have no-args
  4. Filter method must return boolean
  5. Filter method must not throw checked exceptions
Author:
Philippe Charles
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    Applies a logical negation.
    int
    Sets the filter ordering in case of multiple filters.
  • Element Details

    • negate

      boolean negate
      Applies a logical negation.
      Returns:
      true if negation is required, false otherwise
      Default:
      false
    • position

      int position
      Sets the filter ordering in case of multiple filters.
      Returns:
      an ordering
      Default:
      2147483647