Class AnnotationsPropertySource
- java.lang.Object
- org.springframework.core.env.PropertySource<T>
- org.springframework.core.env.EnumerablePropertySource<Class<?>>
- org.springframework.boot.test.autoconfigure.properties.AnnotationsPropertySource
public class AnnotationsPropertySource extends org.springframework.core.env.EnumerablePropertySource<Class<?>>
EnumerablePropertySource
to adapt annotations marked with@PropertyMapping
.- Since:
- 1.4.0
Constructor Summary
Constructors Constructor Description AnnotationsPropertySource(Class<?> source)
AnnotationsPropertySource(String name, Class<?> source)
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
containsProperty(String name)
boolean
equals(Object obj)
Object
getProperty(String name)
String[]
getPropertyNames()
int
hashCode()
boolean
isEmpty()
Constructor Detail
AnnotationsPropertySource
public AnnotationsPropertySource(Class<?> source)
AnnotationsPropertySource
public AnnotationsPropertySource(String name, Class<?> source)
Method Detail
containsProperty
public boolean containsProperty(String name)
- Overrides:
containsProperty
in classorg.springframework.core.env.EnumerablePropertySource<Class<?>>
getProperty
public Object getProperty(String name)
- Specified by:
getProperty
in classorg.springframework.core.env.PropertySource<Class<?>>
getPropertyNames
public String[] getPropertyNames()
- Specified by:
getPropertyNames
in classorg.springframework.core.env.EnumerablePropertySource<Class<?>>
isEmpty
public boolean isEmpty()
equals
public boolean equals(Object obj)
- Overrides:
equals
in classorg.springframework.core.env.PropertySource<Class<?>>