Class AnnotationOverrides

java.lang.Object
com.fasterxml.classmate.AnnotationOverrides
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
AnnotationOverrides.StdImpl

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

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    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 
    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).
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Method for constructing builder for creating simple overrides provider that just uses direct assignments (target-to-override classes)
    abstract List<Class<?>>
    mixInsFor(ClassKey beanClass)
     
    mixInsFor(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 Details

    • AnnotationOverrides

      public AnnotationOverrides()
  • Method Details

    • mixInsFor

      public List<Class<?>> mixInsFor(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 List<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)