Adding annotations
You can add annotations into your source code by using the Annotations view or by adding the annotation directly in the Java™ editor.
About this task
Java EE 5 and later support the injection of annotations into your source code so that you can embed resources, dependencies, services, and lifecycle notifications in your source code, without having to maintain these artifacts elsewhere. Annotations simplify the development and configuration of enterprise applications.
Procedure
- Determine which annotations to add to your source code. See documentation about Java EE, security, web application, or web service annotations.
- Add the annotations by using the Annotations view or by manually editing the source code. See topics about adding annotations for instructions.