[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:
Robert von Burg 2014-08-13 16:07:06 +02:00
parent c16685dfc6
commit 54c9038c9f
1 changed files with 5 additions and 1 deletions

View File

@ -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();