open class AnnotatedElementUtils
General utility methods for finding annotations, meta-annotations, and repeatable annotations on AnnotatedElement.
Note that the features of this class are not provided by the JDK's introspection facilities themselves. Annotation Attribute OverridesSupport for meta-annotations with attribute overrides in composed annotations is provided by all variants of the The search algorithms used by methods in this class follow either find or get semantics. Consult the javadocs for each individual method for details on which search algorithm is used. Get semantics are limited to searching for annotations that are either present on an Find semantics are much more exhaustive, providing get semantics plus support for the following:
@Inherited
Methods following get semantics will honor the contract of Java's java.lang.annotation.Inherited annotation except that locally declared annotations (including custom composed annotations) will be favored over inherited annotations. In contrast, methods following find semantics will completely ignore the presence of |
|
abstract class OrderUtils
General utility for determining the order of an object based on its type declaration. Handles Spring's Order annotation as well as javax.annotation.Priority. |
|
interface SynthesizedAnnotation
Marker interface implemented by synthesized annotation proxies. Used to detect whether an annotation has already been synthesized. |
|
open class SynthesizingMethodParameter : MethodParameter
A MethodParameter variant which synthesizes annotations that declare attribute aliases via AliasFor. |
class Order
The NOTE: Since Spring 4.0, annotation-based ordering is supported for many kinds of components in Spring, even for collection injection where the order values of the target components are taken into account (either from their target class or from their Since Spring 4.1, the standard javax.annotation.Priority annotation can be used as a drop-in replacement for this annotation in ordering scenarios. Note that Alternatively, order values may also be determined on a per-instance basis through the Ordered interface, allowing for configuration-determined instance values instead of hard-coded values attached to a particular class. Consult the javadoc for org.springframework.core.OrderComparator for details on the sort semantics for non-ordered objects. |
open class AnnotationConfigurationException : NestedRuntimeException
Thrown by AnnotationUtils and synthesized annotations if an annotation is improperly configured. |