Java EE Annotations
JSR 250 ( Common Annotations ) Since Java EE 5 (May 11, 2006) & Java SE 6 All non-Java EE JSR 250 annotations were added to the Java SE with version 6 (Generated, PostConstruct, PreDestroy, Resource, Resources). Yellow ones are security-related annotations. javax.annotation package Annotation Description @ Generated Marks sources that have been generated @ Resource Declares a reference to a resource, e.g. a database @ Resources Container for multiple Resource annotations @ PostConstruct Is used on methods that need to get executed after dependency injection is done to perform any initialization. @ PreDestroy Is used on methods that are called before the instance is removed from the container @ Priority Is used to indicate in what order the classes should be used. For, e.g., the Interceptors specification defines the use of priorities on inte...