final int getInitialModuleStartLevel() { readLock(); try { return this.initialModuleStartLevel; } finally { readUnlock(); } }
final int getInitialModuleStartLevel() { readLock(); try { return this.initialModuleStartLevel; } finally { readUnlock(); } }
final int getInitialModuleStartLevel() { readLock(); try { return this.initialModuleStartLevel; } finally { readUnlock(); } }
final int getInitialModuleStartLevel() { readLock(); try { return this.initialModuleStartLevel; } finally { readUnlock(); } }
final int getInitialModuleStartLevel() { readLock(); try { return this.initialModuleStartLevel; } finally { readUnlock(); } }
final int getInitialModuleStartLevel() { readLock(); try { return this.initialModuleStartLevel; } finally { readUnlock(); } }
/** * returns the next module ID * <p> * A read operation protected by the {@link #readLock() read} lock. * @return the next module ID */ public final long getNextId() { readLock(); try { return nextId.get(); } finally { readUnlock(); } }
/** * returns the next module ID * <p> * A read operation protected by the {@link #readLock() read} lock. * @return the next module ID */ public final long getNextId() { readLock(); try { return nextId.get(); } finally { readUnlock(); } }
/** * returns the next module ID * <p> * A read operation protected by the {@link #readLock() read} lock. * @return the next module ID */ public final long getNextId() { readLock(); try { return nextId.get(); } finally { readUnlock(); } }
@Override public Collection<Bundle> getRemovalPendingBundles() { moduleDatabase.readLock(); try { Collection<Bundle> removalPendingBundles = new HashSet<Bundle>(); Collection<ModuleRevision> removalPending = moduleDatabase.getRemovalPending(); for (ModuleRevision moduleRevision : removalPending) { removalPendingBundles.add(moduleRevision.getBundle()); } return removalPendingBundles; } finally { moduleDatabase.readUnlock(); } }
@Override public Collection<Bundle> getRemovalPendingBundles() { moduleDatabase.readLock(); try { Collection<Bundle> removalPendingBundles = new HashSet<>(); Collection<ModuleRevision> removalPending = moduleDatabase.getRemovalPending(); for (ModuleRevision moduleRevision : removalPending) { removalPendingBundles.add(moduleRevision.getBundle()); } return removalPendingBundles; } finally { moduleDatabase.readUnlock(); } }
private void readUnlock() { equinoxContainer.getStorage().getModuleDatabase().readUnlock(); }
private void readUnlock() { equinoxContainer.getStorage().getModuleDatabase().readUnlock(); }
private void readUnlock() { equinoxContainer.getStorage().getModuleDatabase().readUnlock(); }
private void readUnlock() { equinoxContainer.getStorage().getModuleDatabase().readUnlock(); }
@Override public Collection<Bundle> getRemovalPendingBundles() { moduleDatabase.readLock(); try { Collection<Bundle> removalPendingBundles = new HashSet<>(); Collection<ModuleRevision> removalPending = moduleDatabase.getRemovalPending(); for (ModuleRevision moduleRevision : removalPending) { removalPendingBundles.add(moduleRevision.getBundle()); } return removalPendingBundles; } finally { moduleDatabase.readUnlock(); } }
private void readUnlock() { equinoxContainer.getStorage().getModuleDatabase().readUnlock(); }
/** * Returns the dependency closure of for the specified modules. * @param initial The initial modules for which to generate the dependency closure * @return A collection containing a snapshot of the dependency closure of the specified * modules, or an empty collection if there were no specified modules. */ public Collection<Module> getDependencyClosure(Collection<Module> initial) { moduleDatabase.readLock(); try { return getRefreshClosure(initial, moduleDatabase.getWiringsCopy()); } finally { moduleDatabase.readUnlock(); } }
/** * Returns the dependency closure of for the specified modules. * @param initial The initial modules for which to generate the dependency closure * @return A collection containing a snapshot of the dependency closure of the specified * modules, or an empty collection if there were no specified modules. */ public Collection<Module> getDependencyClosure(Collection<Module> initial) { moduleDatabase.readLock(); try { return getRefreshClosure(initial, moduleDatabase.getWiringsCopy()); } finally { moduleDatabase.readUnlock(); } }
/** * Returns the dependency closure of for the specified modules. * @param initial The initial modules for which to generate the dependency closure * @return A collection containing a snapshot of the dependency closure of the specified * modules, or an empty collection if there were no specified modules. */ public Collection<Module> getDependencyClosure(Collection<Module> initial) { moduleDatabase.readLock(); try { return getRefreshClosure(initial, moduleDatabase.getWiringsCopy()); } finally { moduleDatabase.readUnlock(); } }