Class TestcontainersPropertySource
java.lang.Object
org.springframework.core.env.PropertySource<T>
org.springframework.core.env.EnumerablePropertySource<Map<String,Supplier<Object>>>
org.springframework.boot.testcontainers.properties.TestcontainersPropertySource
public class TestcontainersPropertySource
extends EnumerablePropertySource<Map<String,Supplier<Object>>>
EnumerablePropertySource
backed by a map with values supplied from one or more
testcontainers
.- Since:
- 3.1.0
- Author:
- Phillip Webb
-
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
-
Method Summary
Modifier and TypeMethodDescriptionstatic DynamicPropertyRegistry
attach
(Environment environment) static DynamicPropertyRegistry
attach
(Environment environment, BeanDefinitionRegistry registry) boolean
containsProperty
(String name) getProperty
(String name) String[]
-
Method Details
-
getProperty
- Specified by:
getProperty
in classPropertySource<Map<String,
Supplier<Object>>>
-
containsProperty
- Overrides:
containsProperty
in classEnumerablePropertySource<Map<String,
Supplier<Object>>>
-
getPropertyNames
- Specified by:
getPropertyNames
in classEnumerablePropertySource<Map<String,
Supplier<Object>>>
-
attach
-
attach
public static DynamicPropertyRegistry attach(Environment environment, BeanDefinitionRegistry registry)
-