org.apache.commons.scaffold.util
Interface Executable


public interface Executable

Simple interface to describe public methods on a business logic object.

Version:
$Revision: 1.3 $ $Date: 2004/03/21 21:10:10 $

Method Summary
 java.lang.Object execute()
          Perform business logic for this bean, often by passing default values to the Object execute(Object) signature.
 java.lang.Object execute(java.lang.Object parameters)
          Perform business logic for this, by retrieving any settings from the parameter object, and return a result object.
 

Method Detail

execute

public java.lang.Object execute()
                         throws java.lang.Exception
Perform business logic for this bean, often by passing default values to the Object execute(Object) signature. If there is no default, it is recommended that a subclass throw an UnsupportedOperationException instead.

Throws:
Throws - Exception on any error. A subclass of ChainedException is recommended.
java.lang.Exception

execute

public java.lang.Object execute(java.lang.Object parameters)
                         throws java.lang.Exception
Perform business logic for this, by retrieving any settings from the parameter object, and return a result object.

Throws:
Throws - Exception on any error. A subclass of ChainedException is recommended.
java.lang.Exception


Copyright © 2002-2005 The Apache Software Foundation. All Rights Reserved.