Top Description Inners Constructors Methods
com.fasterxml.classmate

public abstract Class AnnotationOverrides

extends Object
implements Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable
Known Direct Subclasses
com.fasterxml.classmate.AnnotationOverrides.StdImpl
Annotations
@SuppressWarnings:serial
Imports
java.io.Serializable, java.util.*, com.fasterxml.classmate.util.ClassKey

Interface for object that can provide mix-ins to override annotations.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public 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.

public 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).

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static AnnotationOverrides.StdBuilder
builder()

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

public List<Class<?>>

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
(Class<?> beanClass)

Method called to find out which class(es) are to be used as source for annotations to mix in for given type.

public abstract List<Class<?>>
mixInsFor(ClassKey beanClass)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

AnnotationOverridesback to summary
public AnnotationOverrides()

Method Detail

builderback to summary
public static AnnotationOverrides.StdBuilder builder()

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

mixInsForback to summary
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<Class<?>>

List of mix-in sources (starting with highest priority); can be null or empty list if no mix-ins are to be used.

mixInsForback to summary
public abstract List<Class<?>> mixInsFor(ClassKey beanClass)
com.fasterxml.classmate back to summary

public Class AnnotationOverrides.StdBuilder

extends Object
Class Inheritance

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.

Field Summary

Modifier and TypeField and Description
protected final HashMap<ClassKey, List<Class<?>>>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public AnnotationOverrides.StdBuilder
add(Class<?> target, Class<?> mixin)

public AnnotationOverrides.StdBuilder
add(ClassKey target, Class<?> mixin)

public AnnotationOverrides
build()

Method that will construct a AnnotationOverrides instance using mappings that have been added using this builder

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

_targetsToOverridesback to summary
protected final HashMap<ClassKey, List<Class<?>>> _targetsToOverrides

Constructor Detail

StdBuilderback to summary
public StdBuilder()

Method Detail

addback to summary
public AnnotationOverrides.StdBuilder add(Class<?> target, Class<?> mixin)
addback to summary
public AnnotationOverrides.StdBuilder add(ClassKey target, Class<?> mixin)
buildback to summary
public AnnotationOverrides build()

Method that will construct a AnnotationOverrides instance using mappings that have been added using this builder

com.fasterxml.classmate back to summary

public Class AnnotationOverrides.StdImpl

extends AnnotationOverrides
Class Inheritance

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).

Field Summary

Modifier and TypeField and Description
protected final HashMap<ClassKey, List<Class<?>>>

Constructor Summary

AccessConstructor and Description
public
StdImpl(HashMap<ClassKey, List<Class<?>>> overrides)

Method Summary

Modifier and TypeMethod and Description
public List<Class<?>>
Inherited from com.fasterxml.classmate.AnnotationOverrides:
buildermixInsFor

Field Detail

_targetsToOverridesback to summary
protected final HashMap<ClassKey, List<Class<?>>> _targetsToOverrides

Constructor Detail

StdImplback to summary
public StdImpl(HashMap<ClassKey, List<Class<?>>> overrides)

Method Detail

mixInsForback to summary
public List<Class<?>> mixInsFor(ClassKey target)

Implements abstract com.fasterxml.classmate.AnnotationOverrides.mixInsFor.

Annotations
@Override