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 ServiceMapper annotation #318

Open
charphi opened this issue Feb 2, 2024 · 0 comments
Open

Add ServiceMapper annotation #318

charphi opened this issue Feb 2, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@charphi
Copy link
Member

charphi commented Feb 2, 2024

Add a @ServiceMapper to extract a service from its service provider when they are not the same interface.

Example:

@ServiceDefinition
public interface ServiceCarrier {

    @ServiceMapper
    Service getService();
}

Optional<Service> service = ServiceCarrierLoader.load();
@charphi charphi added the enhancement New feature or request label Feb 2, 2024
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