15
15
*/
16
16
package com .gs .obevo .api .appdata ;
17
17
18
+ import java .util .Collection ;
19
+ import java .util .Collections ;
18
20
import java .util .LinkedHashSet ;
21
+ import java .util .Queue ;
22
+ import java .util .concurrent .ConcurrentLinkedQueue ;
19
23
20
24
import com .gs .obevo .api .factory .PlatformConfiguration ;
21
25
import com .gs .obevo .api .platform .DeployerAppContext ;
@@ -43,6 +47,7 @@ public class Environment<T extends Platform> {
43
47
private T platform ;
44
48
private boolean cleanBuildAllowed = false ;
45
49
private ImmutableMap <String , String > tokens = Maps .immutable .empty ();
50
+ private ImmutableMap <String , String > runtimeEnvAttrs = Maps .immutable .empty ();
46
51
private String defaultUserId ;
47
52
private String defaultPassword ;
48
53
@ Deprecated
@@ -68,6 +73,7 @@ public void copyFieldsFrom(Environment<T> env) {
68
73
this .platform = env .platform ;
69
74
this .cleanBuildAllowed = env .cleanBuildAllowed ;
70
75
this .tokens = env .tokens ;
76
+ this .runtimeEnvAttrs = env .runtimeEnvAttrs ;
71
77
this .defaultUserId = env .defaultUserId ;
72
78
this .defaultPassword = env .defaultPassword ;
73
79
this .coreSourcePath = env .coreSourcePath ;
@@ -137,6 +143,14 @@ public void setTokens(ImmutableMap<String, String> tokens) {
137
143
this .tokens = tokens != null ? tokens : Maps .immutable .<String , String >empty ();
138
144
}
139
145
146
+ public ImmutableMap <String , String > getRuntimeEnvAttrs () {
147
+ return this .runtimeEnvAttrs ;
148
+ }
149
+
150
+ public void setRuntimeEnvAttrs (ImmutableMap <String , String > runtimeEnvAttrs ) {
151
+ this .runtimeEnvAttrs = runtimeEnvAttrs != null ? runtimeEnvAttrs : Maps .immutable .<String , String >empty ();
152
+ }
153
+
140
154
/**
141
155
* The main source path that was used to invoke this environment deployment. Used in case the paths are read in via
142
156
* configuration and need to be resolved by some other executor.
0 commit comments