We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In Java 9+, a provider method is a public static no-arg method called provider where the return type is the service type.
public static
provider
Since this feature is not available on Java 8, a possible workaround would be to generate a delegate wrapper around this method.
The text was updated successfully, but these errors were encountered:
Workaround could be extended to:
Examples:
public interface HelloService {} public class SomeClass { @ServiceProvider public static HelloService create() { ... } } @ServiceProvider public enum SomeEnum implements HelloService { ... }
Sorry, something went wrong.
No branches or pull requests
In Java 9+, a provider method is a
public static
no-arg method calledprovider
where the return type is the service type.Since this feature is not available on Java 8, a possible workaround would be to generate a delegate wrapper around this method.
The text was updated successfully, but these errors were encountered: