Uses of Class
java.lang.annotation.Retention
| Package | Description |
|---|---|
| java.beans |
Contains classes related to developing beans -- components based on
the JavaBeans™ architecture.
|
| java.io |
Provides for system input and output through data streams,
serialization and the file system.
|
| java.lang |
Provides classes that are fundamental to the design of the Java
programming language.
|
| java.lang.annotation |
Provides library support for the Java programming language
annotation facility.
|
| javax.annotation.processing |
Facilities for declaring annotation processors and for
allowing annotation processors to communicate with an annotation processing
tool environment.
|
| javax.management |
Provides the core classes for the Java Management Extensions.
|
| javax.swing |
Provides a set of "lightweight" (all-Java language) components
that, to the maximum degree possible, work the same on all platforms.
|
| jdk.jfr |
This package provides classes to create events and control Flight Recorder.
|
-
Uses of Retention in java.beans
Classes in java.beans with annotations of type Retention Modifier and Type Class Description interfaceBeanPropertyAn annotation used to specify some property-related information for the automatically generatedBeanInfoclasses.interfaceConstructorPropertiesAn annotation on a constructor that shows how the parameters of that constructor correspond to the constructed object's getter methods.interfaceJavaBeanAn annotation used to specify some class-related information for the automatically generatedBeanInfoclasses.interfaceTransientIndicates that an attribute called "transient" should be declared with the givenvaluewhen theIntrospectorconstructs aPropertyDescriptororEventSetDescriptorclasses associated with the annotated code element. -
Uses of Retention in java.io
Classes in java.io with annotations of type Retention Modifier and Type Class Description interfaceSerialIndicates that an annotated field or method is part of the serialization mechanism defined by the Java Object Serialization Specification. -
Uses of Retention in java.lang
Classes in java.lang with annotations of type Retention Modifier and Type Class Description interfaceDeprecatedA program element annotated@Deprecatedis one that programmers are discouraged from using.interfaceFunctionalInterfaceAn informative annotation type used to indicate that an interface type declaration is intended to be a functional interface as defined by the Java Language Specification.interfaceOverrideIndicates that a method declaration is intended to override a method declaration in a supertype.interfaceSafeVarargsA programmer assertion that the body of the annotated method or constructor does not perform potentially unsafe operations on its varargs parameter.interfaceSuppressWarningsIndicates that the named compiler warnings should be suppressed in the annotated element (and in all program elements contained in the annotated element). -
Uses of Retention in java.lang.annotation
Classes in java.lang.annotation with annotations of type Retention Modifier and Type Class Description interfaceDocumentedIf the annotation@Documentedis present on the declaration of an annotation type A, then any@Aannotation on an element is considered part of the element's public contract.interfaceInheritedIndicates that an annotation type is automatically inherited.interfaceNativeIndicates that a field defining a constant value may be referenced from native code.interfaceRepeatableThe annotation typejava.lang.annotation.Repeatableis used to indicate that the annotation type whose declaration it (meta-)annotates is repeatable.interfaceRetentionIndicates how long annotations with the annotated type are to be retained.interfaceTargetIndicates the contexts in which an annotation type is applicable. -
Uses of Retention in javax.annotation.processing
Classes in javax.annotation.processing with annotations of type Retention Modifier and Type Class Description interfaceGeneratedThe Generated annotation is used to mark source code that has been generated.interfaceSupportedAnnotationTypesAn annotation used to indicate what annotation types an annotation processor supports.interfaceSupportedOptionsAn annotation used to indicate what options an annotation processor supports.interfaceSupportedSourceVersionAn annotation used to indicate the latest source version an annotation processor supports. -
Uses of Retention in javax.management
Classes in javax.management with annotations of type Retention Modifier and Type Class Description interfaceConstructorParametersAn annotation on a constructor that shows how the parameters of that constructor correspond to the constructed object's getter methods.interfaceDescriptorKeyMeta-annotation that describes how an annotation element relates to a field in aDescriptor.interfaceMXBeanAnnotation to mark an interface explicitly as being an MXBean interface, or as not being an MXBean interface. -
Uses of Retention in javax.swing
Classes in javax.swing with annotations of type Retention Modifier and Type Class Description interfaceSwingContainerAn annotation used to specify some swing-related information for the automatically generatedBeanInfoclasses. -
Uses of Retention in jdk.jfr
Classes in jdk.jfr with annotations of type Retention Modifier and Type Class Description interfaceBooleanFlagEvent field annotation, specifies that the value is a boolean flag, atrueorfalsevalueinterfaceCategoryEvent annotation, to associate the event type with a category, in the format of a human-readable path.interfaceContentTypeMeta annotation, specifies that an annotation represents a content type, such as a time span or a frequency.interfaceDataAmountEvent field annotation, specifies that a value represents an amount of data (for example, bytes).interfaceDescriptionAnnotation that describes an element by using a sentence or two.interfaceEnabledEvent annotation, determines if an event should be enabled by default.interfaceExperimentalAnnotation that specifies that an element is experimental and may change without notice.interfaceFrequencyEvent field annotation, specifies that the value is a frequency, measured in Hz.interfaceLabelAnnotation that sets a human-readable name for an element (for example,"Maximum Throughput").interfaceMemoryAddressEvent field annotation, specifies that the value is a memory address.interfaceMetadataDefinitionMeta annotation for defining new types of event metadata.interfaceNameAnnotation that overrides the default name for an element (for example, when the default package for an event is not appropriate).interfacePercentageEvent field annotation to use on fractions, typically between0.0and1.0, to specify that the value is a percentage.interfacePeriodEvent annotation, specifies the default setting value for a periodic event.interfaceRegisteredEvent annotation, for programmatic event registration.interfaceRelationalMeta annotation for relational annotations, to be used on an annotation.interfaceSettingDefinitionAnnotation that specifies that a method in an event class should be used to filter out events.interfaceStackTraceEvent annotation, determines whether an event by default has a stack trace or not.interfaceThresholdEvent annotation, specifies the default duration below which an event is not recorded (for example,"20 ms").interfaceTimespanEvent field annotation, specifies that the value is a duration.interfaceTimestampEvent field annotation, specifies that the value is a point in time.interfaceTransitionFromEvent field annotation, specifies that the event transitioned from a thread.interfaceTransitionToEvent field annotation, specifies that the event will soon transition to a thread.interfaceUnsignedEvent field annotation, specifies that the value is of an unsigned data type.