@Documented
@Retention(value=CLASS)
@Target(value=TYPE)
public @interface AutoService
ServiceLoader. The
annotation processor generates the configuration files that allow the annotated class to be
loaded with ServiceLoader.load(Class).
The annotated class must conform to the service provider specification. Specifically, it must:
value()
| Modifier and Type | Required Element and Description |
|---|---|
java.lang.Class<?>[] |
value
Returns the interfaces implemented by this service provider.
|
Copyright © 2020 Google LLC. All Rights Reserved.