kohsuke / metainf-services

Generates META-INF/services files automatically
http://metainf-services.kohsuke.org/
69 stars 26 forks source link

Allowing for multiple entries in annotations. #10

Closed kaefer3000 closed 9 years ago

kaefer3000 commented 9 years ago

I had the need for multiple entries in an annotation. This patch did the trick for me. Cheers!

jglick commented 9 years ago

Seems right from a quick inspection. Pity that this component has no unit tests. (Hickory, etc.)

kaefer3000 commented 9 years ago

So, what can I do? I could give you anecdotal evidence that annotating with one class works as it did with release 1.5 (946ddf9):

@MetaInfServices(Object.class)
public class AnnotatedTestClass {}

Now annotating with multiple classes works, too:

@MetaInfServices({Class.class, Object.class})
public class DoubleAnnotatedTestClass {}