[Major] Refactored StrolchConfiguration.xml to use environments
Now the agent requires an environment parameter to start, and the configuration of that environment is used to load different sections of the configuration file
This commit is contained in:
parent
c16685dfc6
commit
54c9038c9f
|
@ -111,10 +111,14 @@ public final class RuntimeMock {
|
|||
}
|
||||
|
||||
public void startContainer() {
|
||||
startContainer("dev");
|
||||
}
|
||||
|
||||
public void startContainer(String environment) {
|
||||
|
||||
try {
|
||||
StrolchAgent agent = new StrolchAgent();
|
||||
agent.setup(this.rootPath);
|
||||
agent.setup(environment, this.rootPath);
|
||||
agent.initialize();
|
||||
agent.start();
|
||||
|
||||
|
|
Loading…
Reference in New Issue