]>
git.argeo.org Git - lgpl/argeo-commons.git/blob - org.argeo.init/src/org/argeo/init/StaticRuntimeContext.java
1 package org
.argeo
.init
;
5 public class StaticRuntimeContext
implements RuntimeContext
{
6 private Map
<String
, String
> config
;
8 private boolean running
= false;
10 protected StaticRuntimeContext(Map
<String
, String
> config
) {
15 public synchronized void run() {
21 public void waitForStop(long timeout
) throws InterruptedException
{
22 long begin
= System
.currentTimeMillis();
23 while (running
&& (timeout
== 0 || System
.currentTimeMillis() - begin
< timeout
)) {
31 public synchronized void close() throws Exception
{