Class ResolvablePlaceholderAnnotationAttributes<A extends java.lang.annotation.Annotation>
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<K,V>
-
- java.util.LinkedHashMap<java.lang.String,java.lang.Object>
-
- org.springframework.core.annotation.AnnotationAttributes
-
- io.microsphere.spring.core.annotation.GenericAnnotationAttributes<A>
-
- io.microsphere.spring.core.annotation.ResolvablePlaceholderAnnotationAttributes<A>
-
- Type Parameters:
A
- The type ofAnnotation
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,java.util.Map<java.lang.String,java.lang.Object>
- Direct Known Subclasses:
PropertySourceExtensionAttributes
public class ResolvablePlaceholderAnnotationAttributes<A extends java.lang.annotation.Annotation> extends GenericAnnotationAttributes<A>
The resolvable placeholders ofAnnotationAttributes
- Since:
- 1.0.0
- Author:
- Mercy
- See Also:
GenericAnnotationAttributes
, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ResolvablePlaceholderAnnotationAttributes(A annotation, org.springframework.core.env.PropertyResolver propertyResolver)
ResolvablePlaceholderAnnotationAttributes(java.util.Map<java.lang.String,java.lang.Object> another, java.lang.Class<A> annotationType, org.springframework.core.env.PropertyResolver propertyResolver)
ResolvablePlaceholderAnnotationAttributes(org.springframework.core.annotation.AnnotationAttributes another, org.springframework.core.env.PropertyResolver propertyResolver)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <A extends java.lang.annotation.Annotation>
ResolvablePlaceholderAnnotationAttributes<A>of(A annotation, org.springframework.core.env.PropertyResolver propertyResolver)
Create an instance ofResolvablePlaceholderAnnotationAttributes
from the specifiedannotation
static <A extends java.lang.annotation.Annotation>
ResolvablePlaceholderAnnotationAttributes<A>of(java.util.Map<java.lang.String,java.lang.Object> attributes, java.lang.Class<A> annotationType, org.springframework.core.env.PropertyResolver propertyResolver)
Create an instance ofResolvablePlaceholderAnnotationAttributes
from the specifiedannotation
static <A extends java.lang.annotation.Annotation>
ResolvablePlaceholderAnnotationAttributes<A>of(org.springframework.core.annotation.AnnotationAttributes attributes, org.springframework.core.env.PropertyResolver propertyResolver)
Create an instance ofResolvablePlaceholderAnnotationAttributes
from the specifiedannotation
static java.util.Set<org.springframework.core.annotation.AnnotationAttributes>
ofSet(org.springframework.core.annotation.AnnotationAttributes[] attributesArray, org.springframework.core.env.PropertyResolver propertyResolver)
Create aset
ofGenericAnnotationAttributes
-
Methods inherited from class io.microsphere.spring.core.annotation.GenericAnnotationAttributes
annotationType, equals, hashCode, of, of, ofSet
-
Methods inherited from class org.springframework.core.annotation.AnnotationAttributes
fromMap, getAnnotation, getAnnotation, getAnnotationArray, getAnnotationArray, getBoolean, getClass, getClassArray, getEnum, getNumber, getString, getStringArray, toString
-
Methods inherited from class java.util.LinkedHashMap
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, removeEldestEntry, replaceAll, values
-
Methods inherited from class java.util.HashMap
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
-
-
-
-
Constructor Detail
-
ResolvablePlaceholderAnnotationAttributes
public ResolvablePlaceholderAnnotationAttributes(A annotation, @Nullable org.springframework.core.env.PropertyResolver propertyResolver)
-
ResolvablePlaceholderAnnotationAttributes
public ResolvablePlaceholderAnnotationAttributes(org.springframework.core.annotation.AnnotationAttributes another, @Nullable org.springframework.core.env.PropertyResolver propertyResolver)
-
ResolvablePlaceholderAnnotationAttributes
public ResolvablePlaceholderAnnotationAttributes(java.util.Map<java.lang.String,java.lang.Object> another, java.lang.Class<A> annotationType, @Nullable org.springframework.core.env.PropertyResolver propertyResolver)
-
-
Method Detail
-
of
@Nonnull public static <A extends java.lang.annotation.Annotation> ResolvablePlaceholderAnnotationAttributes<A> of(@Nonnull org.springframework.core.annotation.AnnotationAttributes attributes, @Nullable org.springframework.core.env.PropertyResolver propertyResolver)
Create an instance ofResolvablePlaceholderAnnotationAttributes
from the specifiedannotation
- Type Parameters:
A
- theclass
ofannotation
- Parameters:
attributes
-AnnotationAttributes
propertyResolver
-PropertyResolver
- Returns:
- non-null
-
of
@Nonnull public static <A extends java.lang.annotation.Annotation> ResolvablePlaceholderAnnotationAttributes<A> of(@Nonnull A annotation, @Nullable org.springframework.core.env.PropertyResolver propertyResolver)
Create an instance ofResolvablePlaceholderAnnotationAttributes
from the specifiedannotation
- Type Parameters:
A
- theclass
ofannotation
- Parameters:
annotation
-annotation
propertyResolver
-PropertyResolver
- Returns:
- non-null
-
of
@Nonnull public static <A extends java.lang.annotation.Annotation> ResolvablePlaceholderAnnotationAttributes<A> of(java.util.Map<java.lang.String,java.lang.Object> attributes, java.lang.Class<A> annotationType, @Nullable org.springframework.core.env.PropertyResolver propertyResolver)
Create an instance ofResolvablePlaceholderAnnotationAttributes
from the specifiedannotation
- Type Parameters:
A
- theclass
ofannotation
- Parameters:
attributes
- TheMap
for the attributes of annotationpropertyResolver
-PropertyResolver
- Returns:
- non-null
-
ofSet
@Nonnull public static java.util.Set<org.springframework.core.annotation.AnnotationAttributes> ofSet(@Nullable org.springframework.core.annotation.AnnotationAttributes[] attributesArray, @Nullable org.springframework.core.env.PropertyResolver propertyResolver)
Create aset
ofGenericAnnotationAttributes
- Parameters:
attributesArray
-propertyResolver
-- Returns:
- non-null
-
-