Annotation Interface NoBundle
Annotation to express that the annotated class looks like a bundle, but is not one.
The bundles goal of the tentackle-check-maven-plugin treats getString invocations on a
ResourceBundle referenced by a method or variable, such as getBundle().getString("key"),
as lookups in the bundle named after the invoking class. If that class is not registered via Bundle,
the goal reports an error. Annotating the class with @NoBundle excludes those invocations from the check.
Use it for classes that load an ordinary resource bundle which must not be registered via Bundle,
because registered bundles are pushed to and pulled from the database by the tentackle-i18n-maven-plugin.
An example is the Version class generated by the tentackle-project-archetype, which reads the
build properties from a bundle of the same name.
- Author:
- harald