Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ServiceId annotation #244

Closed
charphi opened this issue Jun 22, 2023 · 0 comments
Closed

Add ServiceId annotation #244

charphi opened this issue Jun 22, 2023 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@charphi
Copy link
Member

charphi commented Jun 22, 2023

A @ServiceId annotation would specify which method returns the identifier of a service provider. This identifier might be used to filter the providers in a loader through system properties.

Example:

@ServiceDefinition(quantifier = Quantifier.MULTIPLE)
public interface Translator {

    @ServiceId
    String getName();

    String translate(String text);
}
@charphi charphi added the enhancement New feature or request label Jun 22, 2023
@charphi charphi added this to the 1.7.0 milestone Jun 26, 2023
@charphi charphi closed this as completed Jun 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant