private synchronized OSGiIndex getIndex() throws Exception { if (index != null) { return index; } return getIndex(false); }
void poll() throws Exception { if (stale) { return; } OSGiIndex ix; synchronized (this) { ix = index; } if (ix == null) return; if (ix.isStale()) { stale = true; this.notifyRepositoryListeners(); } }
@Override public Map<Requirement, Collection<Capability>> findProviders(Collection<? extends Requirement> requirements) { try { return getIndex().findProviders(requirements); } catch (Exception e) { throw Exceptions.duck(e); } } }
@Override public String getName() { return config.name(); }
@Override public Map<Requirement, Collection<Capability>> findProviders(Collection<? extends Requirement> requirements) { try { return getIndex().findProviders(requirements); } catch (Exception e) { throw Exceptions.duck(e); } } }
void poll() throws Exception { if (stale) { return; } OSGiIndex ix; synchronized (this) { ix = index; } if (ix == null) return; if (ix.isStale()) { stale = true; this.notifyRepositoryListeners(); } }
private synchronized OSGiIndex getIndex() throws Exception { if (index != null) { return index; } return getIndex(false); }
@Override public String getName() { return config.name(); }
@Override public void prepare() throws Exception { getIndex(); }
@Override public void prepare() throws Exception { getIndex(); }