Class AnnotationsPropertySource
java.lang.Object
org.springframework.core.env.PropertySource<T>
org.springframework.core.env.EnumerablePropertySource<Class<?>>
org.springframework.boot.test.autoconfigure.properties.AnnotationsPropertySource
EnumerablePropertySource to adapt annotations marked with
@PropertyMapping.- Since:
- 1.4.0
- Author:
- Phillip Webb, Andy Wilkinson
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.core.env.PropertySource
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 classEnumerablePropertySource<Class<?>>
-
getProperty
- Specified by:
getPropertyin classPropertySource<Class<?>>
-
getPropertyNames
- Specified by:
getPropertyNamesin classEnumerablePropertySource<Class<?>>
-
isEmpty
public boolean isEmpty() -
equals
- Overrides:
equalsin classPropertySource<Class<?>>
-
hashCode
public int hashCode()- Overrides:
hashCodein classPropertySource<Class<?>>
-