Class AnnotationOverrides

  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    AnnotationOverrides.StdImpl

    public abstract class AnnotationOverrides
    extends java.lang.Object
    implements java.io.Serializable
    Interface for object that can provide mix-ins to override annotations.
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  AnnotationOverrides.StdBuilder
      To make it easy to use simple override implementation (where overrides are direct and explicit), here is a build that allow constructing such override instance.
      static class  AnnotationOverrides.StdImpl
      Simple implementation configured with explicit associations with target class as key, and overrides as ordered list of classes (with first entry having precedence over later ones).
    • Method Summary

      All Methods Static Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      static AnnotationOverrides.StdBuilder builder()
      Method for constructing builder for creating simple overrides provider that just uses direct assignments (target-to-override classes)
      abstract java.util.List<java.lang.Class<?>> mixInsFor​(ClassKey beanClass)  
      java.util.List<java.lang.Class<?>> mixInsFor​(java.lang.Class<?> beanClass)
      Method called to find out which class(es) are to be used as source for annotations to mix in for given type.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AnnotationOverrides

        public AnnotationOverrides()
    • Method Detail

      • mixInsFor

        public java.util.List<java.lang.Class<?>> mixInsFor​(java.lang.Class<?> beanClass)
        Method called to find out which class(es) are to be used as source for annotations to mix in for given type.
        Returns:
        List of mix-in sources (starting with highest priority); can be null or empty list if no mix-ins are to be used.
      • mixInsFor

        public abstract java.util.List<java.lang.Class<?>> mixInsFor​(ClassKey beanClass)
      • builder

        public static AnnotationOverrides.StdBuilder builder()
        Method for constructing builder for creating simple overrides provider that just uses direct assignments (target-to-override classes)