void checkAllCapabilities() { for (final CapabilityReference ref : capabilityRegistry.getAll()) { if (isSatisfiedBy(ref)) { setSatisfied(true); return; } } setSatisfied(false); }
@Override protected void doBind() { try { bindLock.writeLock().lock(); for (final CapabilityReference reference : capabilityRegistry.getAll()) { handle(new CapabilityEvent.Created(capabilityRegistry, reference)); } } finally { bindLock.writeLock().unlock(); } getEventBus().register(this); }