Annotation Type ServiceSource


@Target({ANNOTATION_TYPE,METHOD}) @Retention(RUNTIME) @Documented @ArgumentsSource(ServiceArgumentsProvider.class) public @interface ServiceSource
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Filter string used to target more specific services using the String.format pattern.
    Optional arguments to the format string provided by filter().
     
    long
    Indicate require services must arrive within the specified timeout.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final long
     
  • Field Details

  • Element Details

    • serviceType

      Class<?> serviceType
      Default:
      java.lang.Object.class
    • filter

      String filter
      Filter string used to target more specific services using the String.format pattern. Must use valid OSGi filter syntax.
      Returns:
      The filter string.
      Default:
      ""
    • filterArguments

      String[] filterArguments
      Optional arguments to the format string provided by filter().
      Returns:
      The filter arguments.
      Default:
      {}
    • timeout

      long timeout
      Indicate require services must arrive within the specified timeout.
      Returns:
      The timeout.
      Default:
      200L