Registry / build-tool / auto-service-annotations

auto-service-annotations

JSON →
library1.1.1javamavenunverified

Provider-configuration files for ServiceLoader, providing annotations to automatically generate service provider configuration files.

<dependency> <groupId>com.google.auto.service</groupId> <artifactId>auto-service-annotations</artifactId> <version>1.1.1</version> </dependency>
INSTALL
IMPORT
SIG · AUTO-SERVICE-ANNOT
A
auto-service-annotations
build-tooljavav1.1.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

AutoService
com.google.auto.service.AutoService

Minimal example showing how to use @AutoService annotation to register a service provider.

import com.google.auto.service.AutoService; import javax.annotation.processing.Processor; import javax.annotation.processing.AbstractProcessor; import javax.annotation.processing.RoundEnvironment; import javax.lang.model.element.TypeElement; import java.util.Set; @AutoService(Processor.class) public class MyProcessor extends AbstractProcessor { @Override public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) { return false; } }
Debug
Known issues
gotchaAutoService requires annotation processing to be enabled in your build tool (e.g., Maven compiler plugin).
fix
Ensure your build configuration enables annotation processing.
affects: *
Upgrade
Version history
1.1.1latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
44 hits · last 30 days
node
38
OpenAI (training)
1
Resources
auto-service-annotations — mvn dependency:get auto-service-annotations · libregistry