+ protected Repository getRepositoryBlocking() {
+ long begin = System.currentTimeMillis();
+ while (repository == null) {
+ synchronized (this) {
+ try {
+ wait(500);
+ } catch (InterruptedException e) {
+ // silent
+ }
+ }
+ if (System.currentTimeMillis() - begin > timeout)
+ throw new ArgeoException("No repository registered after "
+ + timeout + " ms");
+ }
+ return repository;
+ }
+
+ public synchronized void register(Repository repository,