Java annotations on interfaces

Java annotations on interfaces

Facilities for declaring annotation processors and for allowing annotation processors to communicate with an annotation processing tool environment.

Uses of Annotation in java.beans

An annotation on a constructor that shows how the parameters of that constructor correspond to the constructed object’s getter methods.

Indicates that an attribute called «transient» should be declared with the given value when the Introspector constructs a PropertyDescriptor or EventSetDescriptor classes associated with the annotated code element.

Uses of Annotation in java.lang

A program element annotated @Deprecated is one that programmers are discouraged from using, typically because it is dangerous, or because a better alternative exists.

An 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.

A programmer assertion that the body of the annotated method or constructor does not perform potentially unsafe operations on its varargs parameter.

Indicates that the named compiler warnings should be suppressed in the annotated element (and in all program elements contained in the annotated element).

Читайте также:  Html display text attributes

Uses of Annotation in java.lang.annotation

The annotation type java.lang.annotation.Repeatable is used to indicate that the annotation type whose declaration it (meta-)annotates is repeatable.

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 and Description
T Parameter. getAnnotation (Class annotationClass)

Returns this element’s annotation for the specified type if such an annotation is present, else null.

Returns this element’s annotation for the specified type if such an annotation is present, else null.

Returns this element’s annotation for the specified type if such an annotation is present, else null.

Returns this element’s annotation for the specified type if such an annotation is present, else null.

Returns this element’s annotation for the specified type if such an annotation is present, else null.

Returns this element’s annotation for the specified type if such an annotation is directly present, else null.

Returns this element’s annotation(s) for the specified type if such annotations are either directly present or indirectly present.

Returns this element’s annotation(s) for the specified type if such annotations are either directly present or indirectly present.

Returns an array of arrays of Annotation s that represent the annotations on the formal parameters, in declaration order, of the Executable represented by this object.

Returns an array of arrays of Annotation s that represent the annotations on the formal parameters, in declaration order, of the Executable represented by this object.

Returns an array of arrays of Annotation s that represent the annotations on the formal parameters, in declaration order, of the Executable represented by this object.

Uses of Annotation in javax.annotation

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

The 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.

Uses of Annotation in javax.annotation.processing

Uses of Annotation in javax.jws

Uses of Annotation in javax.jws.soap

Uses of Annotation in javax.lang.model

Methods in javax.lang.model with type parameters of type Annotation
Modifier and Type Method and Description
A AnnotatedConstruct. getAnnotation (Class annotationType)

Returns this construct’s annotation of the specified type if such an annotation is present, else null .

Uses of Annotation in javax.lang.model.element

Returns this construct’s annotation of the specified type if such an annotation is present, else null .

Uses of Annotation in javax.management

Annotation to mark an interface explicitly as being an MXBean interface, or as not being an MXBean interface.

Uses of Annotation in javax.xml.bind.annotation

Disable consideration of XOP encoding for datatypes that are bound to base64-encoded binary data in XML.

Enables 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

Uses of Annotation in javax.xml.ws

The Action annotation allows explicit association of a WS-Addressing Action message addressing property with input , output , and fault messages of the mapped WSDL operation.

The BindingType annotation is used to specify the binding to use for a web service endpoint implementation class.

The FaultAction annotation is used inside an Action annotation to allow an explicit association of a WS-Addressing Action message addressing property with the fault messages of the WSDL operation mapped from the exception class.

Used to annotate methods in the Service Endpoint Interface with the request wrapper bean to be used at runtime.

Used to annotate methods in the Service Endpoint Interface with the response wrapper bean to be used at runtime.

Used to indicate whether a Provider implementation wishes to work with entire protocol messages or just with protocol message payloads.

Used 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.

The WebServiceRef annotation is used to define a reference to a web service and (optionally) an injection target for it.

The WebServiceRefs annotation allows multiple web service references to be declared at the class level.

Uses of Annotation in javax.xml.ws.soap

This annotation represents the use of WS-Addressing with either the SOAP 1.1/HTTP or SOAP 1.2/HTTP binding.

Uses of Annotation in javax.xml.ws.spi

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2023, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.

Источник

Оцените статью