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
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.core.env.PropertySource
org.springframework.core.env.PropertySource.StubPropertySource -
Field Summary
Fields inherited from class org.springframework.core.env.PropertySource
logger, name, source -
Constructor Summary
ConstructorsConstructorDescriptionAnnotationsPropertySource(Class<?> source) AnnotationsPropertySource(String name, Class<?> source) -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsProperty(String name) booleangetProperty(String name) String[]inthashCode()booleanisEmpty()Methods inherited from class org.springframework.core.env.PropertySource
getName, getSource, named, toString
-
Constructor Details
-
AnnotationsPropertySource
-
AnnotationsPropertySource
-
-
Method Details
-
containsProperty
- Overrides:
containsPropertyin classorg.springframework.core.env.EnumerablePropertySource<Class<?>>
-
getProperty
- Specified by:
getPropertyin classorg.springframework.core.env.PropertySource<Class<?>>
-
getPropertyNames
- Specified by:
getPropertyNamesin classorg.springframework.core.env.EnumerablePropertySource<Class<?>>
-
isEmpty
public boolean isEmpty() -
equals
- Overrides:
equalsin classorg.springframework.core.env.PropertySource<Class<?>>
-
hashCode
public int hashCode()- Overrides:
hashCodein classorg.springframework.core.env.PropertySource<Class<?>>
-