Top Description Annotations
module jakarta.annotation

Package jakarta.annotation


This package defines the common annotations.

Annotation Summary

Modifier and TypeAnnotation and Description
public @interface
Generated

The Generated annotation is used to mark source code that has been generated.

public @interface
Nonnull

The annotated element must not be null.

public @interface
Nullable

The annotated element could be null under some circumstances.

public @interface
PostConstruct

The PostConstruct annotation is used on a method that needs to be executed after dependency injection is done to perform any initialization.

public @interface
PreDestroy

The PreDestroy annotation is used on a method as a callback notification to signal that the instance is in the process of being removed by the container.

public @interface
Priority

The Priority annotation can be applied to any program elements to indicate in what order they should be used.

public @interface
Resource

The Resource annotation marks a resource that is needed by the application.

public @interface
Resources

This class is used to allow multiple resources declarations.