public abstract class AbstractSimpleComponentsMonitor extends Object implements ComponentsMonitor
| Constructor and Description |
|---|
AbstractSimpleComponentsMonitor(String[] components)
Instantiates a new abstract simple components monitor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
allComponentsUsed()
Check if all components are used.
|
List<String> |
getRemainingComponents()
Gets the remaining components.
|
ComponentsMonitor |
useComponent(String component)
Use a component.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfinalStateValidpublic AbstractSimpleComponentsMonitor(String[] components)
components - the componentspublic ComponentsMonitor useComponent(String component) throws IllegalArgumentException
useComponent in interface ComponentsMonitorcomponent - the componentIllegalArgumentException - if the component is already usedpublic boolean allComponentsUsed()
allComponentsUsed in interface ComponentsMonitorpublic List<String> getRemainingComponents()
getRemainingComponents in interface ComponentsMonitorCopyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.