-
- All Implemented Interfaces:
-
java.io.Serializable
public class ContainerEnvironment implements Serializable
Encapsulates environment variables to be used when starting a container. If Providers are added they are stored as is. Provider.get is not called until ContainerEnvironment.toList or ContainerEnvironment.toString are called. So the actual value is determined lazily.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classContainerEnvironment.Companion
-
Constructor Summary
Constructors Constructor Description ContainerEnvironment()
-
Method Summary
Modifier and Type Method Description final ContainerEnvironmentadd(String key, Object value)Adds an environment variable with a name of keyand a value ofvalueifvalue != null.final List<String>toList()final Map<String, String>toMap()final ContainerEnvironmentmerge(ContainerEnvironment other)StringtoString()-
-
Method Detail
-
add
final ContainerEnvironment add(String key, Object value)
Adds an environment variable with a name of
keyand a value ofvalueifvalue != null.
-
merge
final ContainerEnvironment merge(ContainerEnvironment other)
-
-
-
-