Class TargetMethodAnnotationDrivenBinder.ParameterBinder.ForFixedValue.OfConstant<U extends java.lang.annotation.Annotation>

    • Field Detail

      • type

        private final java.lang.Class<U extends java.lang.annotation.Annotation> type
        The type of the annotation that is bound by this binder.
    • Constructor Detail

      • OfConstant

        protected OfConstant​(java.lang.Class<U> type,
                             java.lang.Object value)
        Creates a binder for binding a fixed value to a parameter annotated with the given annotation.
        Parameters:
        type - The type of the annotation that is bound by this binder.
        value - The value that is assigned to any annotated parameter.
    • Method Detail

      • of

        public static <V extends java.lang.annotation.Annotation> TargetMethodAnnotationDrivenBinder.ParameterBinder<V> of​(java.lang.Class<V> type,
                                                                                                                           java.lang.Object value)
        Creates a binder for binding a fixed value to a given annotation.
        Type Parameters:
        V - The bound annotation's type.
        Parameters:
        type - The type of the annotation that is bound by this binder.
        value - The value that is assigned to any annotated parameter.
        Returns:
        A parameter binder that binds the given annotation to the supplied value.
      • getHandledType

        public java.lang.Class<U> getHandledType()
        The annotation type that is handled by this parameter binder.
        Returns:
        The Annotation.annotationType() handled by this parameter binder.