In Java 9+, a provider method is a public static
no-arg method called provider
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.