java - What's the point of package annotations? -
i understand purpose of class annotations, how , annotations used in java?. purpose of package annotations, described in blog post , §7.4.1 of java language specification?
why want associate metadata package? kinds of things do?
- bnd tool (and maven-bundle-plugin) makes use of package annotations. putting @version , @export annotation in package-info.java allows generate osgi metadata.
- javadoc uses package annotations.
- jaxb uses package-level annotations, for example, specify mapping of java type xml schema type package-wide. package annotations used in jboss's xml binding.
- struts 2 convention plugin uses an annotation specify default interceptor actions in package.
- there package-level hibernate annotations. example of annotations' usage can found here.
Comments
Post a Comment