org.apache.directory.shared.util
Class MandatoryComponentsMonitor

java.lang.Object
  extended by org.apache.directory.shared.util.AbstractSimpleComponentsMonitor
      extended by org.apache.directory.shared.util.MandatoryComponentsMonitor
All Implemented Interfaces:
ComponentsMonitor

public class MandatoryComponentsMonitor
extends AbstractSimpleComponentsMonitor

A components monitor for manadatory components.

Author:
Apache Directory Project

Constructor Summary
MandatoryComponentsMonitor(String[] components)
          Instantiates a new mandatory components monitor.
 
Method Summary
 boolean finalStateValid()
          Checks if the final state is valid.
 
Methods inherited from class org.apache.directory.shared.util.AbstractSimpleComponentsMonitor
allComponentsUsed, getRemainingComponents, useComponent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MandatoryComponentsMonitor

public MandatoryComponentsMonitor(String[] components)
Instantiates a new mandatory components monitor.

Parameters:
components - the components
Method Detail

finalStateValid

public boolean finalStateValid()
Checks if the final state is valid. As all components are mandatory it checks whether all components are used.

Returns:
true if all components are used


Copyright © 2003-2012 The Apache Software Foundation. All Rights Reserved.