cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p...@apache.org
Subject svn commit: rev 56241 - cocoon/whiteboard/kernel/src/org/apache/cocoon/kernel/description
Date Mon, 01 Nov 2004 15:02:52 GMT
Author: pier
Date: Mon Nov  1 07:02:52 2004
New Revision: 56241

Modified:
   cocoon/whiteboard/kernel/src/org/apache/cocoon/kernel/description/Block.java
Log:
Blocks must provide classes, and small XML element name bug

Modified: cocoon/whiteboard/kernel/src/org/apache/cocoon/kernel/description/Block.java
==============================================================================
--- cocoon/whiteboard/kernel/src/org/apache/cocoon/kernel/description/Block.java	(original)
+++ cocoon/whiteboard/kernel/src/org/apache/cocoon/kernel/description/Block.java	Mon Nov 
1 07:02:52 2004
@@ -57,7 +57,7 @@
         }
         
         /* Implementations */
-        Iterator iterator = configuration.children(NAMESPACE, "extends");
+        Iterator iterator = configuration.children(NAMESPACE, "implements");
         Set list = new HashSet();
         while (iterator.hasNext()) {
             Configuration current = (Configuration) iterator.next();
@@ -75,7 +75,10 @@
         this.clazz = provides.getStringAttribute("component", null);
 
         /* No class? Abstract block, only libraries */
-        if (this.clazz == null) return;
+        if (this.clazz == null) {
+            throw new DeployerException("Block descriptor does not provide component"
+                    + " instance at " + provides.location());
+        }
 
         /* Process initializer, destroyer, and singleton */
         this.initializer = provides.getStringAttribute("initialize", null);

Mime
View raw message