Package jakarta.annotation
package jakarta.annotation
This package defines the common annotations.
-
ClassDescriptionThe
Generatedannotation is used to mark source code that has been generated.The annotated element must not be null.The annotated element could be null under some circumstances.ThePostConstructannotation is used on a method that needs to be executed after dependency injection is done to perform any initialization.ThePreDestroyannotation is used on a method as a callback notification to signal that the instance is in the process of being removed by the container.ThePriorityannotation can be applied to any program elements to indicate in what order they should be used.TheResourceannotation marks a resource that is needed by the application.The two possible authentication types for a resource.This class is used to allow multiple resources declarations.