Search code examples
javaannotationsjava-ee-6seam3deltaspike

@Requires annotation of Seam Solder should receive a string or a class?


Seam Solder documentation says that the @Requires annotation requires an array of Class objects as a parameter. However, when I try to use it (from Seam Solder 3.0.0.Final API artifact - not the impl artifact, it is worth noting) Eclipse informs me the annotation expects an array of strings. Some source code I have found also indicates the annotation requires strings.

So, is this a bug in Solder documentation? Also, what is the expected string for the annotation? (I suppose it is the fully qualified type name, but I would like to make it sure and, anyway, it would be good to have such a reference in the web).


Solution

  • Peeking in the source code reveals that Eclipse is right. The Seam 3 documentation is not always correct, unfortunately.

    Filing a JIRA issue or starting a pull request would be the perfect open source community attitude...