- bnd tool (and maven-bundle-plugin) makes use of package annotations. Putting @Version and @Export annotation in package-info.java allows it to generate OSGi metadata.
- javadoc uses package annotations.
- JAXB uses package-level annotations, for example, to specify mapping of a Java type to XML Schema type package-wide. Package annotations are also used in JBoss's xml binding.
- Struts 2 Convention plugin uses an annotation to specify a default interceptor for all actions in a package.
- There are some package-level Hibernate Annotations. An example of those annotations' usage can be found here.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…