Uses of Interface
java.lang.annotation.Annotation
-
Packages that use Annotation Package Description java.beans Contains classes related to developing beans -- components based on the JavaBeans™ architecture.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.java.lang.reflect Provides classes and interfaces for obtaining reflective information about classes and objects.javafx.beans The packagejavafx.beanscontains the interfaces that define the most generic form of observability.javafx.fxml Contains classes for loading an object hierarchy from markup.javax.annotation javax.annotation.processing Facilities for declaring annotation processors and for allowing annotation processors to communicate with an annotation processing tool environment.javax.jws javax.jws.soap javax.lang.model Classes and hierarchies of packages used to model the Java programming language.javax.lang.model.element Interfaces used to model elements of the Java programming language.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.javax.xml.bind.annotation Defines annotations for customizing Java program elements to XML Schema mapping.javax.xml.bind.annotation.adapters XmlAdapterand its spec-defined sub-classes to allow arbitrary Java classes to be used with JAXB.javax.xml.ws This package contains the core JAX-WS APIs.javax.xml.ws.soap This package defines APIs specific to the SOAP binding.javax.xml.ws.spi This package defines SPIs for JAX-WS.jdk.jfr This package contains classes to create events and control Flight Recorder. -
-
Uses of Annotation in java.beans
Classes in java.beans that implement Annotation 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 Annotation in java.lang
Classes in java.lang that implement Annotation 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).Methods in java.lang with type parameters of type Annotation Modifier and Type Method Description <A extends Annotation>
AClass. getAnnotation(Class<A> annotationClass)<T extends Annotation>
TModule. getAnnotation(Class<T> annotationClass)Returns this element's annotation for the specified type if such an annotation is present, else null.<A extends Annotation>
APackage. getAnnotation(Class<A> annotationClass)<A extends Annotation>
A[]Class. getAnnotationsByType(Class<A> annotationClass)<A extends Annotation>
A[]Package. getAnnotationsByType(Class<A> annotationClass)<A extends Annotation>
AClass. getDeclaredAnnotation(Class<A> annotationClass)<A extends Annotation>
APackage. getDeclaredAnnotation(Class<A> annotationClass)<A extends Annotation>
A[]Class. getDeclaredAnnotationsByType(Class<A> annotationClass)<A extends Annotation>
A[]Package. getDeclaredAnnotationsByType(Class<A> annotationClass)Methods in java.lang that return Annotation Modifier and Type Method Description Annotation[]Class. getAnnotations()Annotation[]Module. getAnnotations()Returns annotations that are present on this element.Annotation[]Package. getAnnotations()<A extends Annotation>
A[]Class. getAnnotationsByType(Class<A> annotationClass)<A extends Annotation>
A[]Package. getAnnotationsByType(Class<A> annotationClass)Annotation[]Class. getDeclaredAnnotations()Annotation[]Module. getDeclaredAnnotations()Returns annotations that are directly present on this element.Annotation[]Package. getDeclaredAnnotations()<A extends Annotation>
A[]Class. getDeclaredAnnotationsByType(Class<A> annotationClass)<A extends Annotation>
A[]Package. getDeclaredAnnotationsByType(Class<A> annotationClass)Method parameters in java.lang with type arguments of type Annotation Modifier and Type Method Description booleanClass. isAnnotationPresent(Class<? extends Annotation> annotationClass)Returns true if an annotation for the specified type is present on this element, else false.booleanPackage. isAnnotationPresent(Class<? extends Annotation> annotationClass)Returns true if an annotation for the specified type is present on this element, else false. -
Uses of Annotation in java.lang.annotation
Classes in java.lang.annotation that implement Annotation 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.Methods in java.lang.annotation that return types with arguments of type Annotation Modifier and Type Method Description Class<? extends Annotation>Annotation. annotationType()Returns the annotation type of this annotation.Class<? extends Annotation>IncompleteAnnotationException. annotationType()Returns the Class object for the annotation type with the missing element.Constructor parameters in java.lang.annotation with type arguments of type Annotation Constructor Description IncompleteAnnotationException(Class<? extends Annotation> annotationType, String elementName)Constructs an IncompleteAnnotationException to indicate that the named element was missing from the specified annotation type. -
Uses of Annotation in java.lang.reflect
Methods in java.lang.reflect with type parameters of type Annotation Modifier and Type Method Description <T extends Annotation>
TAccessibleObject. getAnnotation(Class<T> annotationClass)<T extends Annotation>
TAnnotatedElement. getAnnotation(Class<T> annotationClass)Returns this element's annotation for the specified type if such an annotation is present, else null.<T extends Annotation>
TConstructor. getAnnotation(Class<T> annotationClass)Returns this element's annotation for the specified type if such an annotation is present, else null.<T extends Annotation>
TExecutable. getAnnotation(Class<T> annotationClass)Returns this element's annotation for the specified type if such an annotation is present, else null.<T extends Annotation>
TField. getAnnotation(Class<T> annotationClass)<T extends Annotation>
TMethod. getAnnotation(Class<T> annotationClass)Returns this element's annotation for the specified type if such an annotation is present, else null.<T extends Annotation>
TParameter. getAnnotation(Class<T> annotationClass)Returns this element's annotation for the specified type if such an annotation is present, else null.<T extends Annotation>
T[]AccessibleObject. getAnnotationsByType(Class<T> annotationClass)default <T extends Annotation>
T[]AnnotatedElement. getAnnotationsByType(Class<T> annotationClass)Returns annotations that are associated with this element.<T extends Annotation>
T[]Executable. getAnnotationsByType(Class<T> annotationClass)Returns annotations that are associated with this element.<T extends Annotation>
T[]Field. getAnnotationsByType(Class<T> annotationClass)Returns annotations that are associated with this element.<T extends Annotation>
T[]Parameter. getAnnotationsByType(Class<T> annotationClass)Returns annotations that are associated with this element.<T extends Annotation>
TAccessibleObject. getDeclaredAnnotation(Class<T> annotationClass)default <T extends Annotation>
TAnnotatedElement. getDeclaredAnnotation(Class<T> annotationClass)Returns this element's annotation for the specified type if such an annotation is directly present, else null.<T extends Annotation>
TParameter. getDeclaredAnnotation(Class<T> annotationClass)<T extends Annotation>
T[]AccessibleObject. getDeclaredAnnotationsByType(Class<T> annotationClass)default <T extends Annotation>
T[]AnnotatedElement. getDeclaredAnnotationsByType(Class<T> annotationClass)Returns this element's annotation(s) for the specified type if such annotations are either directly present or indirectly present.<T extends Annotation>
T[]Parameter. getDeclaredAnnotationsByType(Class<T> annotationClass)Methods in java.lang.reflect that return Annotation Modifier and Type Method Description Annotation[]AccessibleObject. getAnnotations()Annotation[]AnnotatedElement. getAnnotations()Returns annotations that are present on this element.Annotation[]Parameter. getAnnotations()Returns annotations that are present on this element.<T extends Annotation>
T[]AccessibleObject. getAnnotationsByType(Class<T> annotationClass)default <T extends Annotation>
T[]AnnotatedElement. getAnnotationsByType(Class<T> annotationClass)Returns annotations that are associated with this element.<T extends Annotation>
T[]Executable. getAnnotationsByType(Class<T> annotationClass)Returns annotations that are associated with this element.<T extends Annotation>
T[]Field. getAnnotationsByType(Class<T> annotationClass)Returns annotations that are associated with this element.<T extends Annotation>
T[]Parameter. getAnnotationsByType(Class<T> annotationClass)Returns annotations that are associated with this element.Annotation[]AccessibleObject. getDeclaredAnnotations()Annotation[]AnnotatedElement. getDeclaredAnnotations()Returns annotations that are directly present on this element.Annotation[]Constructor. getDeclaredAnnotations()Returns annotations that are directly present on this element.Annotation[]Executable. getDeclaredAnnotations()Returns annotations that are directly present on this element.Annotation[]Field. getDeclaredAnnotations()Returns annotations that are directly present on this element.Annotation[]Method. getDeclaredAnnotations()Returns annotations that are directly present on this element.Annotation[]Parameter. getDeclaredAnnotations()Returns annotations that are directly present on this element.<T extends Annotation>
T[]AccessibleObject. getDeclaredAnnotationsByType(Class<T> annotationClass)default <T extends Annotation>
T[]AnnotatedElement. getDeclaredAnnotationsByType(Class<T> annotationClass)Returns this element's annotation(s) for the specified type if such annotations are either directly present or indirectly present.<T extends Annotation>
T[]Parameter. getDeclaredAnnotationsByType(Class<T> annotationClass)Annotation[][]Constructor. getParameterAnnotations()Returns an array of arrays ofAnnotations that represent the annotations on the formal parameters, in declaration order, of theExecutablerepresented by this object.abstract Annotation[][]Executable. getParameterAnnotations()Returns an array of arrays ofAnnotations that represent the annotations on the formal parameters, in declaration order, of theExecutablerepresented by this object.Annotation[][]Method. getParameterAnnotations()Returns an array of arrays ofAnnotations that represent the annotations on the formal parameters, in declaration order, of theExecutablerepresented by this object.Method parameters in java.lang.reflect with type arguments of type Annotation Modifier and Type Method Description booleanAccessibleObject. isAnnotationPresent(Class<? extends Annotation> annotationClass)Returns true if an annotation for the specified type is present on this element, else false.default booleanAnnotatedElement. isAnnotationPresent(Class<? extends Annotation> annotationClass)Returns true if an annotation for the specified type is present on this element, else false. -
Uses of Annotation in javafx.beans
Classes in javafx.beans that implement Annotation Modifier and Type Class Description interfaceDefaultPropertySpecifies a property to which child elements will be added or set when an explicit property is not given.interfaceNamedArgAnnotation that provides information about argument's name. -
Uses of Annotation in javafx.fxml
Classes in javafx.fxml that implement Annotation Modifier and Type Class Description interfaceFXMLAnnotation that tags a field or method as accessible to markup. -
Uses of Annotation in javax.annotation
Classes in javax.annotation that implement Annotation Modifier and Type Class Description interfaceGeneratedThe Generated annotation is used to mark source code that has been generated.interfacePostConstructThe PostConstruct annotation is used on a method that needs to be executed after dependency injection is done to perform any initialization.interfacePreDestroyThe PreDestroy annotation is used on methods as a callback notification to signal that the instance is in the process of being removed by the container.interfaceResourceThe Resource annotation marks a resource that is needed by the application.interfaceResourcesThis class is used to allow multiple resources declarations. -
Uses of Annotation in javax.annotation.processing
Classes in javax.annotation.processing that implement Annotation 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.Method parameters in javax.annotation.processing with type arguments of type Annotation Modifier and Type Method Description Set<? extends Element>RoundEnvironment. getElementsAnnotatedWith(Class<? extends Annotation> a)Returns the elements annotated with the given annotation type.default Set<? extends Element>RoundEnvironment. getElementsAnnotatedWithAny(Set<Class<? extends Annotation>> annotations)Returns the elements annotated with one or more of the given annotation types. -
Uses of Annotation in javax.jws
Classes in javax.jws that implement Annotation Modifier and Type Class Description interfaceHandlerChaininterfaceOnewayinterfaceWebMethodinterfaceWebParaminterfaceWebResultinterfaceWebService -
Uses of Annotation in javax.jws.soap
Classes in javax.jws.soap that implement Annotation Modifier and Type Class Description interfaceInitParamDeprecated.interfaceSOAPBindinginterfaceSOAPMessageHandlerDeprecated.interfaceSOAPMessageHandlersDeprecated. -
Uses of Annotation in javax.lang.model
Methods in javax.lang.model with type parameters of type Annotation Modifier and Type Method Description <A extends Annotation>
AAnnotatedConstruct. getAnnotation(Class<A> annotationType)Returns this construct's annotation of the specified type if such an annotation is present, elsenull.<A extends Annotation>
A[]AnnotatedConstruct. getAnnotationsByType(Class<A> annotationType)Returns annotations that are associated with this construct.Methods in javax.lang.model that return Annotation Modifier and Type Method Description <A extends Annotation>
A[]AnnotatedConstruct. getAnnotationsByType(Class<A> annotationType)Returns annotations that are associated with this construct. -
Uses of Annotation in javax.lang.model.element
Methods in javax.lang.model.element with type parameters of type Annotation Modifier and Type Method Description <A extends Annotation>
AElement. getAnnotation(Class<A> annotationType)Returns this construct's annotation of the specified type if such an annotation is present, elsenull. -
Uses of Annotation in javax.management
Classes in javax.management that implement Annotation 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 Annotation in javax.swing
Classes in javax.swing that implement Annotation Modifier and Type Class Description interfaceSwingContainerAn annotation used to specify some swing-related information for the automatically generatedBeanInfoclasses. -
Uses of Annotation in javax.xml.bind.annotation
Classes in javax.xml.bind.annotation that implement Annotation Modifier and Type Class Description interfaceXmlAccessorOrderControls the ordering of fields and properties in a class.interfaceXmlAccessorTypeControls whether fields or Javabean properties are serialized by default.interfaceXmlAnyAttributeMaps a JavaBean property to a map of wildcard attributes.interfaceXmlAnyElementMaps a JavaBean property to XML infoset representation and/or JAXB element.interfaceXmlAttachmentRefMarks a field/property that its XML form is a uri reference to mime content.interfaceXmlAttributeMaps a JavaBean property to a XML attribute.interfaceXmlElementMaps a JavaBean property to a XML element derived from property name.interfaceXmlElementDeclMaps a factory method to a XML element.interfaceXmlElementRefMaps a JavaBean property to a XML element derived from property's type.interfaceXmlElementRefsMarks a property that refers to classes withXmlElementor JAXBElement.interfaceXmlElementsA container for multiple @XmlElementannotations.interfaceXmlElementWrapperGenerates a wrapper element around XML representation.interfaceXmlEnumMaps an enum typeEnumto XML representation.interfaceXmlEnumValueMaps an enum constant inEnumtype to XML representation.interfaceXmlIDMaps a JavaBean property to XML ID.interfaceXmlIDREFMaps a JavaBean property to XML IDREF.interfaceXmlInlineBinaryDataDisable consideration of XOP encoding for datatypes that are bound to base64-encoded binary data in XML.interfaceXmlListUsed to map a property to a list simple type.interfaceXmlMimeTypeAssociates the MIME type that controls the XML representation of the property.interfaceXmlMixedAnnotate a JavaBean multi-valued property to support mixed content.interfaceXmlNsAssociates a namespace prefix with a XML namespace URI.interfaceXmlRegistryMarks a class that hasXmlElementDecls.interfaceXmlRootElementMaps a class or an enum type to an XML element.interfaceXmlSchemaMaps a package name to a XML namespace.interfaceXmlSchemaTypeMaps a Java type to a simple schema built-in type.interfaceXmlSchemaTypesA container for multiple @XmlSchemaTypeannotations.interfaceXmlSeeAlsoInstructs JAXB to also bind other classes when binding this class.interfaceXmlTransientPrevents the mapping of a JavaBean property/type to XML representation.interfaceXmlTypeMaps a class or an enum type to a XML Schema type.interfaceXmlValueEnables mapping a class to a XML Schema complex type with a simpleContent or a XML Schema simple type. -
Uses of Annotation in javax.xml.bind.annotation.adapters
Classes in javax.xml.bind.annotation.adapters that implement Annotation Modifier and Type Class Description interfaceXmlJavaTypeAdapterUse an adapter that implementsXmlAdapterfor custom marshaling.interfaceXmlJavaTypeAdaptersA container for multiple @XmlJavaTypeAdapterannotations. -
Uses of Annotation in javax.xml.ws
Classes in javax.xml.ws that implement Annotation Modifier and Type Class Description interfaceActionTheActionannotation allows explicit association of a WS-AddressingActionmessage addressing property withinput,output, andfaultmessages of the mapped WSDL operation.interfaceBindingTypeTheBindingTypeannotation is used to specify the binding to use for a web service endpoint implementation class.interfaceFaultActionTheFaultActionannotation is used inside anActionannotation to allow an explicit association of a WS-AddressingActionmessage addressing property with thefaultmessages of the WSDL operation mapped from the exception class.interfaceRequestWrapperUsed to annotate methods in the Service Endpoint Interface with the request wrapper bean to be used at runtime.interfaceRespectBindingThis feature clarifies the use of thewsdl:bindingin a JAX-WS runtime.interfaceResponseWrapperUsed to annotate methods in the Service Endpoint Interface with the response wrapper bean to be used at runtime.interfaceServiceModeUsed to indicate whether aProviderimplementation wishes to work with entire protocol messages or just with protocol message payloads.interfaceWebEndpointUsed to annotate thegetPortName()methods of a generated service interface.interfaceWebFaultUsed to annotate service specific exception classes to customize to the local and namespace name of the fault element and the name of the fault bean.interfaceWebServiceClientUsed to annotate a generated service interface.interfaceWebServiceProviderUsed to annotate a Provider implementation class.interfaceWebServiceRefTheWebServiceRefannotation is used to define a reference to a web service and (optionally) an injection target for it.interfaceWebServiceRefsTheWebServiceRefsannotation allows multiple web service references to be declared at the class level. -
Uses of Annotation in javax.xml.ws.soap
Classes in javax.xml.ws.soap that implement Annotation Modifier and Type Class Description interfaceAddressingThis annotation represents the use of WS-Addressing with either the SOAP 1.1/HTTP or SOAP 1.2/HTTP binding.interfaceMTOMThis feature represents the use of MTOM with a web service. -
Uses of Annotation in javax.xml.ws.spi
Classes in javax.xml.ws.spi that implement Annotation Modifier and Type Class Description interfaceWebServiceFeatureAnnotationAnnotation used to identify other annotations as aWebServiceFeature. -
Uses of Annotation in jdk.jfr
Classes in jdk.jfr that implement Annotation Modifier and Type Class Description interfaceBooleanFlagEvent field annotation, signifies that 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, signifies that an annotation represents a content type, such as a timespan or a frequency.interfaceDataAmountEvent field annotation, signifies that a value represents an amount of data, for example bytes.interfaceDescriptionAnnotation that describes an element with a sentence or two.interfaceEnabledEvent annotation, determines if an event should be enabled by default.interfaceExperimentalAnnotation that signifies that an element is experimental and may change without further notice.interfaceFrequencyEvent field annotation, signifies that value is a frequency, measured in Hz.interfaceLabelAnnotation that sets a human-readable name for an element, for example"Maximum Throughput".interfaceMemoryAddressEvent field annotation, signifies that value is a memory address.interfaceMetadataDefinitionMeta annotation for defining new types of event metadata.interfaceNameAnnotation that overrides the default name for an element, for instance when the default package for an event is not appropriate.interfacePercentageEvent field annotation to be used on fractions, typically between0.0and1.0, to signify that the value is a percentage.interfacePeriodEvent annotation, determines the default period for a periodic event.interfaceRegisteredEvent annotation, for programmatic event registration.interfaceRelationalMeta annotation for relational annotations, to be used on annotation.interfaceSettingDefinitionAnnotation that signifies that a method in an event class should be used to filter out events.interfaceStackTraceEvent annotation, determines if an event should by default have a stack trace or not.interfaceThresholdEvent annotation, determines the default cut-off below which an event should not be recorded, for example"20 ms".interfaceTimespanEvent field annotation, signifies that value is a duration.interfaceTimestampEvent field annotation, signifies that value is a point in time.interfaceTransitionFromEvent field annotation, signifies that the event transitioned from a thread.interfaceTransitionToEvent field annotation, signifies that the event is about to transitions to a thread.interfaceUnsignedEvent field annotation, signifies that value is as unsigned data type.Methods in jdk.jfr with type parameters of type Annotation Modifier and Type Method Description <A extends Annotation>
AEventType. getAnnotation(Class<A> annotationClass)Returns the first annotation for the specified type if an annotation element with the same name is directly present, elsenull.<A extends Annotation>
ASettingDescriptor. getAnnotation(Class<A> annotationType)Returns the first annotation for the specified type if an annotation element with the same name is available, elsenull.<A extends Annotation>
AValueDescriptor. getAnnotation(Class<A> annotationType)Returns the first annotation for the specified type if an annotation element with the same name is directly present for this value descriptor, elsenull.Method parameters in jdk.jfr with type arguments of type Annotation Modifier and Type Method Description <A> AAnnotationElement. getAnnotation(Class<? extends Annotation> annotationType)Returns the first annotation for the specified type if an annotation element with the same name is available, elsenull.Constructor parameters in jdk.jfr with type arguments of type Annotation Constructor Description AnnotationElement(Class<? extends Annotation> annotationType)Creates an annotation element to be used when defining events dynamically.AnnotationElement(Class<? extends Annotation> annotationType, Object value)Creates an annotation element to be used when defining events dynamically.AnnotationElement(Class<? extends Annotation> annotationType, Map<String,Object> values)Creates an annotation element to be used when defining events dynamically.
-