net.sf.staccatocommons.instrument.handler.deactivator
Class StackedDeactivableSupport

java.lang.Object
  extended by net.sf.staccatocommons.instrument.handler.deactivator.StackedDeactivableSupport
All Implemented Interfaces:
Deactivable

public class StackedDeactivableSupport
extends Object
implements Deactivable

Author:
flbulgarelli

Constructor Summary
StackedDeactivableSupport()
          Creates a new StackedDeactivableSupport initially inactive
 
Method Summary
 void activate()
          Requests the handler to be deactivated.
 void deactivate()
          Requests the handler to be activated.
 boolean isActive()
          Answers if this Deactivable is active, that is, if the number of activations - times activate() has been sent to it - is greater than the number of deactivations - times deactivate() has been sent to it.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StackedDeactivableSupport

public StackedDeactivableSupport()
Creates a new StackedDeactivableSupport initially inactive

Method Detail

activate

public void activate()
Description copied from interface: Deactivable
Requests the handler to be deactivated. This request can be ignored.

Specified by:
activate in interface Deactivable

deactivate

public void deactivate()
Description copied from interface: Deactivable
Requests the handler to be activated. This request can be ignored.

Specified by:
deactivate in interface Deactivable

isActive

public boolean isActive()
Answers if this Deactivable is active, that is, if the number of activations - times activate() has been sent to it - is greater than the number of deactivations - times deactivate() has been sent to it.

Returns:
is this deactivable is active


Copyright © 2010-2012 Staccatocommons. All Rights Reserved.