@Documented
@Retention(value=SOURCE)
@Target(value=TYPE)
public @interface AutoService
ServiceLoader
. The AutoServiceProcessor
generates the configuration files which
allows service providers to be loaded with ServiceLoader.load(Class)
.
Service providers assert that they conform to the service provider specification. Specifically, they must:
value()
Modifier and Type | Required Element and Description |
---|---|
java.lang.Class<?> |
value
Returns the interface implemented by this service provider.
|