Package org.apache.directory.api.util
Interface ComponentsMonitor
-
- All Known Implementing Classes:
AbstractSimpleComponentsMonitor,MandatoryAndOptionalComponentsMonitor,MandatoryComponentsMonitor,OptionalComponentsMonitor
public interface ComponentsMonitorMonitor used to track existence or duplication of components.- Author:
- Apache Directory Project
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanallComponentsUsed()Check if all components are used.booleanfinalStateValid()Checks if the final state is valid.List<String>getRemainingComponents()Gets the remaining components.ComponentsMonitoruseComponent(String component)Use a component.
-
-
-
Method Detail
-
useComponent
ComponentsMonitor useComponent(String component)
Use a component.- Parameters:
component- the component- Returns:
- this components monitor
- Throws:
IllegalArgumentException- if the component is already used
-
allComponentsUsed
boolean allComponentsUsed()
Check if all components are used.- Returns:
- true if all components are used
-
finalStateValid
boolean finalStateValid()
Checks if the final state is valid. That depends whether the components are mandatory or optional.- Returns:
- true if the final state is valid
-
-