Author: thorsten
Date: Thu Oct 9 03:50:39 2008
New Revision: 703126
URL: http://svn.apache.org/viewvc?rev=703126&view=rev
Log:
Using contract exception instead of the more general dispatcher one
Modified:
forrest/branches/dispatcher_rewrite/plugins/org.apache.forrest.plugin.internal.dispatcher/src/java/org/apache/forrest/dispatcher/api/Contract.java
Modified:
forrest/branches/dispatcher_rewrite/plugins/org.apache.forrest.plugin.internal.dispatcher/src/java/org/apache/forrest/dispatcher/api/Contract.java
URL:
http://svn.apache.org/viewvc/forrest/branches/dispatcher_rewrite/plugins/org.apache.forrest.plugin.internal.dispatcher/src/java/org/apache/forrest/dispatcher/api/Contract.java?rev=703126&r1=703125&r2=703126&view=diff
==============================================================================
---
forrest/branches/dispatcher_rewrite/plugins/org.apache.forrest.plugin.internal.dispatcher/src/java/org/apache/forrest/dispatcher/api/Contract.java
(original)
+++
forrest/branches/dispatcher_rewrite/plugins/org.apache.forrest.plugin.internal.dispatcher/src/java/org/apache/forrest/dispatcher/api/Contract.java
Thu Oct 9 03:50:39 2008
@@ -19,7 +19,7 @@
import java.io.InputStream;
import java.util.Map;
-import org.apache.forrest.dispatcher.exception.DispatcherException;
+import org.apache.forrest.dispatcher.exception.ContractException;
public interface Contract {
@@ -61,7 +61,7 @@
* that contains all information of the contract as description,
* name, usage, ...
*/
- void initializeFromStream(InputStream stream) throws DispatcherException;
+ void initializeFromStream(InputStream stream) throws ContractException;
/**
* Execute the contract with the given DataStream. The dataStream serves as
@@ -74,10 +74,10 @@
* the parameter that configure the contract (customizing it)
* @return the resulting transformation of the dataStream with the given
* properties.
- * @throws DispatcherException
+ * @throws ContractException
*/
InputStream execute(InputStream dataStream, Map<String, Object> properties)
- throws DispatcherException;
+ throws ContractException;
/**
* @return the name of the contract