Interface OverrideContributionService
- All Known Implementing Classes:
OverrideContributionServiceImpl
public interface OverrideContributionService
This service provides functionality to order contributions by module. This enables
us to make contributions overridable in dependent modules.
-
Method Summary
Modifier and TypeMethodDescription<T extends ModuleDependentContribution>
List<T> getContributionsOfLastModule
(List<T> contributions) Returns the contributions of the last module.<T extends IdentifiableModuleDependentContribution>
List<T> getModuleOrderedAndFilteredContributions
(List<T> contributions) Returns the contributions ordered by moduled and filtered by an identifier.<T extends ModuleDependentContribution>
List<T> getModuleOrderedContributions
(List<T> contributions) Returns the contributions ordered by module.
-
Method Details
-
getModuleOrderedContributions
<T extends ModuleDependentContribution> List<T> getModuleOrderedContributions(List<T> contributions) Returns the contributions ordered by module.- Type Parameters:
T
- A contribution implementing the interfaceModuleDependentContribution
.- Parameters:
contributions
- A List of contributions.- Returns:
- A List containing the contributions ordered by module.
-
getContributionsOfLastModule
Returns the contributions of the last module.- Type Parameters:
T
- A contribution implementing the interfaceModuleDependentContribution
.- Parameters:
contributions
- A List of contributions.- Returns:
- A List containing the contributions of the last module.
-
getModuleOrderedAndFilteredContributions
<T extends IdentifiableModuleDependentContribution> List<T> getModuleOrderedAndFilteredContributions(List<T> contributions) Returns the contributions ordered by moduled and filtered by an identifier.- Type Parameters:
T
- A contribution implementing the interfaceIdentifiableModuleDependentContribution
.- Parameters:
contributions
- A List of contributions.- Returns:
- A List containing the contributions ordered by module and filtered by the identifier.
-