Record Class AbstractListenerAnnotationBeanPostProcessor.TypeMetadata<A extends Annotation>
java.lang.Object
java.lang.Record
org.springframework.amqp.listener.AbstractListenerAnnotationBeanPostProcessor.TypeMetadata<A>
- Type Parameters:
A- the annotation type.- Record Components:
listenerMethods- methods annotated withA.handlerMethods- methods annotated withhandlerannotation.classAnnotations- class levelAannotations.
- Enclosing class:
AbstractListenerAnnotationBeanPostProcessor<A extends Annotation>
protected static record AbstractListenerAnnotationBeanPostProcessor.TypeMetadata<A extends Annotation>(List<AbstractListenerAnnotationBeanPostProcessor.ListenerMethod<A extends Annotation>> listenerMethods, List<Method> handlerMethods, List<A extends Annotation> classAnnotations)
extends Record
The metadata holder of the class with
A and handler annotations.- Since:
- 4.1
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedTypeMetadata(List<AbstractListenerAnnotationBeanPostProcessor.ListenerMethod<A>> listenerMethods, List<Method> handlerMethods, List<A> classAnnotations) Creates an instance of aTypeMetadatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theclassAnnotationsrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thehandlerMethodsrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thelistenerMethodsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TypeMetadata
protected TypeMetadata(List<AbstractListenerAnnotationBeanPostProcessor.ListenerMethod<A>> listenerMethods, List<Method> handlerMethods, List<A> classAnnotations) Creates an instance of aTypeMetadatarecord class.- Parameters:
listenerMethods- the value for thelistenerMethodsrecord componenthandlerMethods- the value for thehandlerMethodsrecord componentclassAnnotations- the value for theclassAnnotationsrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
listenerMethods
Returns the value of thelistenerMethodsrecord component.- Returns:
- the value of the
listenerMethodsrecord component
-
handlerMethods
Returns the value of thehandlerMethodsrecord component.- Returns:
- the value of the
handlerMethodsrecord component
-
classAnnotations
Returns the value of theclassAnnotationsrecord component.- Returns:
- the value of the
classAnnotationsrecord component
-