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 Details

    • AnnotationsPropertySource

      public AnnotationsPropertySource(Class<?> source)
    • AnnotationsPropertySource

      public AnnotationsPropertySource(String name, Class<?> source)
  • Method Details

    • containsProperty

      public boolean containsProperty(String name)
      Overrides:
      containsProperty in class org.springframework.core.env.EnumerablePropertySource<Class<?>>
    • getProperty

      public Object getProperty(String name)
      Specified by:
      getProperty in class org.springframework.core.env.PropertySource<Class<?>>
    • getPropertyNames

      public String[] getPropertyNames()
      Specified by:
      getPropertyNames in class org.springframework.core.env.EnumerablePropertySource<Class<?>>
    • isEmpty

      public boolean isEmpty()
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class org.springframework.core.env.PropertySource<Class<?>>
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class org.springframework.core.env.PropertySource<Class<?>>