You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by rd...@apache.org on 2002/03/12 20:10:20 UTC
cvs commit: jakarta-commons/digester/src/java/org/apache/commons/digester AbstractObjectCreationFactory.java ObjectCreationFactory.java
rdonkin 02/03/12 11:10:20
Modified: digester/src/java/org/apache/commons/digester
AbstractObjectCreationFactory.java
ObjectCreationFactory.java
Log:
Changed object creation factory so that exceptions can be thrown as suggested by Martin Cooper
Revision Changes Path
1.5 +4 -2 jakarta-commons/digester/src/java/org/apache/commons/digester/AbstractObjectCreationFactory.java
Index: AbstractObjectCreationFactory.java
===================================================================
RCS file: /home/cvs/jakarta-commons/digester/src/java/org/apache/commons/digester/AbstractObjectCreationFactory.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- AbstractObjectCreationFactory.java 23 Jan 2002 22:38:01 -0000 1.4
+++ AbstractObjectCreationFactory.java 12 Mar 2002 19:10:20 -0000 1.5
@@ -66,7 +66,7 @@
* implementations.</p>
*
* @author Robert Burrell Donkin
- * @version $Revision: 1.4 $ $Date: 2002/01/23 22:38:01 $
+ * @version $Revision: 1.5 $ $Date: 2002/03/12 19:10:20 $
*/
abstract public class AbstractObjectCreationFactory implements ObjectCreationFactory {
@@ -89,8 +89,10 @@
* object based on the element's attributes.
*
* @param attributes the element's attributes
+ *
+ * @throws Exception any exception thrown will be propagated upwards
*/
- public abstract Object createObject(Attributes attributes);
+ public abstract Object createObject(Attributes attributes) throws Exception;
/**
1.5 +4 -2 jakarta-commons/digester/src/java/org/apache/commons/digester/ObjectCreationFactory.java
Index: ObjectCreationFactory.java
===================================================================
RCS file: /home/cvs/jakarta-commons/digester/src/java/org/apache/commons/digester/ObjectCreationFactory.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- ObjectCreationFactory.java 9 Jan 2002 20:22:49 -0000 1.4
+++ ObjectCreationFactory.java 12 Mar 2002 19:10:20 -0000 1.5
@@ -73,7 +73,7 @@
* <code>ObjectCreationFactory</code> implementations.
*
* @author Robert Burrell Donkin
- * @version $Revision: 1.4 $ $Date: 2002/01/09 20:22:49 $
+ * @version $Revision: 1.5 $ $Date: 2002/03/12 19:10:20 $
*/
public interface ObjectCreationFactory {
@@ -82,8 +82,10 @@
* object based on the element's attributes.
*
* @param attributes the element's attributes
+ *
+ * @throws Exception any exception thrown will be propagated upwards
*/
- public Object createObject(Attributes attributes);
+ public Object createObject(Attributes attributes) throws Exception;
/**
* <p>Returns the {@link Digester} that was set by the
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>