/** * Forwards to the delegate. * <p> * {@inheritDoc} */ @Override public Collection<IGate> getActionabilityGates() { return delegate.getActionabilityGates(); }
/** * Augments the actionability gates with the internal gate tracking the module dirtiness. * * @return the augmented actionability gates */ @Override public Collection<IGate> getActionabilityGates() { Collection<IGate> existingGates = super.getActionabilityGates(); if (!isDirtyTrackingEnabled()) { return existingGates; } Collection<IGate> gates = new HashSet<>(); gates.add(dirtyModuleGate); if (existingGates != null) { gates.addAll(existingGates); } return gates; }