Annotation Interface ComponentParam


@Target(PARAMETER) @Retention(RUNTIME) @Documented public @interface ComponentParam
Specifies additional restrictions when resolving a constructor parameter whose type is another algorithm component. Use this annotation when the default recursive resolution must exclude one or more implementations.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Class<?>[]
    Disallowed classes for recursive components.
  • Element Details

    • disallowed

      Class<?>[] disallowed
      Disallowed classes for recursive components. All derived classes from the disallowed list will be disallowed too. Each disallowed class must be assignable to the annotated parameter type.
      Returns:
      disallowed classes
      Default:
      {}