Registry / dependency-injection / auto-service

auto-service

JSON →
library1.1.1javamavenunverified

Google Auto Service generates ServiceLoader provider-configuration files automatically.

<dependency> <groupId>com.google.auto.service</groupId> <artifactId>auto-service</artifactId> <version>1.1.1</version> </dependency>
INSTALL
IMPORT
SIG · AUTO-SERVICE
A
auto-service
dependency-injectionjavav1.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

Annotate a service implementation to automatically register it with ServiceLoader.

import com.google.auto.service.AutoService; import java.util.ServiceLoader; @AutoService(MyService.class) public class MyServiceImpl implements MyService { @Override public void execute() { System.out.println("Service executed"); } }
Debug
Known issues
gotchaAuto Service requires annotation processing to be enabled in your build tool (e.g., Maven compiler plugin).
fix
Add `maven-compiler-plugin` with `<annotationProcessorPaths>` including `com.google.auto.service:auto-service`.
affects: *
Upgrade
Version history
1.1.1latest on Maven
Audit
Dependencies

No dependency data recorded yet.

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