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

  1. Determine which annotations to add to your source code. See documentation about Java EE, security, web application, or web service annotations.
  2. Add the annotations by using the Annotations view or by manually editing the source code. See topics about adding annotations for instructions.
Icon that indicates the type of topic Task topic
Timestamp icon Last updated: July 17, 2017 21:58

File name: taddanno.html