org.beanfabrics.model
Interface ExecutionMethod


public interface ExecutionMethod

The ExecutionMethod is an interface for classes that can be used as a implementation strategy for OperationPM objects. When OperationPM.execute() is called it delegates the call to all registered ExecutionMethods.

An instance created from this class can be registered with a IOperationPM using the OperationPM.addExecutionMethod(ExecutionMethod) method.


Method Summary
 boolean execute()
          Performs some action.
 

Method Detail

execute

boolean execute()
                throws java.lang.Throwable
Performs some action. Usually this method is called from OperationPM.execute(). It returns true if the action has been successfully performed. It returns false or throws an exception if the actions has not been performed successfully and any subsequent operations should be skipped.

Throws:
java.lang.Throwable - if any exception occurs while performing the action