com.googlecode.jpattern.core.chain
Class AChainElementBlocking

java.lang.Object
  extended by com.googlecode.jpattern.core.chain.AChainElement
      extended by com.googlecode.jpattern.core.chain.AChainElementBlocking
All Implemented Interfaces:
IChainElement, java.io.Serializable

public abstract class AChainElementBlocking
extends AChainElement

Author:
Francesco Cina' 28/gen/2011 This is an element of a Chain of responsibility. The method execute() is called only if the verifyCondition() returns true. This element is not activated if a previous element of the same chain has been executed.
See Also:
Serialized Form

Constructor Summary
protected AChainElementBlocking(IChainElement previousChainElement)
           
 
Method Summary
 boolean tryExecution(IChainResult previousElementResult)
           
 
Methods inherited from class com.googlecode.jpattern.core.chain.AChainElement
exec, execute, getPreviousChainElement, verifyCondition
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AChainElementBlocking

protected AChainElementBlocking(IChainElement previousChainElement)
Method Detail

tryExecution

public final boolean tryExecution(IChainResult previousElementResult)
Specified by:
tryExecution in class AChainElement


Copyright © 2011. All Rights Reserved.