Class AnnotationConfiguration.StdConfiguration

  • All Implemented Interfaces:
    java.io.Serializable
    Enclosing class:
    AnnotationConfiguration

    public static class AnnotationConfiguration.StdConfiguration
    extends AnnotationConfiguration
    implements java.io.Serializable
    Simple implementation that can be configured with default behavior for unknown annotations, as well as explicit behaviors for enumerated annotation types. Same default is used for both class and member method annotations (constructor, field and static method annotations are never inherited)
    See Also:
    Serialized Form
    • Method Detail

      • getInclusionForConstructor

        public AnnotationInclusion getInclusionForConstructor​(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
        Description copied from class: AnnotationConfiguration
        Method called to figure out how to handle instances of specified annotation type when used as constructor annotation.

        Note that constructor annotations can never be inherited so this just determines between inclusion or non-inclusion.

        Specified by:
        getInclusionForConstructor in class AnnotationConfiguration
      • getInclusionForField

        public AnnotationInclusion getInclusionForField​(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
        Description copied from class: AnnotationConfiguration
        Method called to figure out how to handle instances of specified annotation type when used as field annotation.

        Note that field annotations can never be inherited so this just determines between inclusion or non-inclusion.

        Specified by:
        getInclusionForField in class AnnotationConfiguration
      • getInclusionForMethod

        public AnnotationInclusion getInclusionForMethod​(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
        Description copied from class: AnnotationConfiguration
        Method called to figure out how to handle instances of specified annotation type when used as method annotation.

        Note that method annotations can be inherited for member methods, but not for static methods; for static methods thereby this just determines between inclusion and non-inclusion.

        Specified by:
        getInclusionForMethod in class AnnotationConfiguration
      • getInclusionForParameter

        public AnnotationInclusion getInclusionForParameter​(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
        Description copied from class: AnnotationConfiguration
        Method called to figure out how to handle instances of specified annotation type when used as parameter annotation.

        Note that parameter annotations can be inherited for member methods, but not for static methods; for static methods thereby this just determines between inclusion and non-inclusion.

        Specified by:
        getInclusionForParameter in class AnnotationConfiguration
      • setInclusion

        public void setInclusion​(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType,
                                 AnnotationInclusion incl)
      • _inclusionFor

        protected AnnotationInclusion _inclusionFor​(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)