bwest81 / spi

Automatically exported from code.google.com/p/spi
0 stars 0 forks source link

Implicit service class #5

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hello, have a look at META-INF/services file generator*. It's the same goal but 
you do not need to specify the service class explicit. Just the annotation is 
enough if the annotated class have only one super-class/interface:

@MetaInfServices
public class MyProvider implements SomeContract {
  ...
}

I think that would be a great enhancement for your project.

* http://weblogs.java.net/blog/kohsuke/archive/2009/03/my_project_of_t.html

Original issue reported on code.google.com by tryfl...@gmail.com on 21 Oct 2012 at 4:31