Package org.osgi.test.junit5.service
Annotation Type ServiceSource
@Target({ANNOTATION_TYPE,METHOD})
@Retention(RUNTIME)
@Documented
@ArgumentsSource(ServiceArgumentsProvider.class)
public @interface ServiceSource
-
Optional Element Summary
Optional Elements -
Field Summary
Fields
-
Field Details
-
DEFAULT_TIMEOUT
static final long DEFAULT_TIMEOUT- See Also:
-
-
Element Details
-
serviceType
Class<?> serviceType- Default:
- java.lang.Object.class
-
filter
String filterFilter string used to target more specific services using theString.formatpattern. Must use valid OSGi filter syntax.- Returns:
- The filter string.
- Default:
- ""
-
filterArguments
String[] filterArgumentsOptional arguments to the format string provided byfilter().- Returns:
- The filter arguments.
- Default:
- {}
-
timeout
long timeoutIndicate require services must arrive within the specified timeout.- Returns:
- The timeout.
- Default:
- 200L
-