cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p...@apache.org
Subject svn commit: rev 56189 - cocoon/whiteboard/kernel/src/org/apache/cocoon/kernel/runtime
Date Mon, 01 Nov 2004 03:24:48 GMT
Author: pier
Date: Sun Oct 31 19:24:47 2004
New Revision: 56189

Modified:
   cocoon/whiteboard/kernel/src/org/apache/cocoon/kernel/runtime/Factory.java
Log:
Allow creation of abstracts

Modified: cocoon/whiteboard/kernel/src/org/apache/cocoon/kernel/runtime/Factory.java
==============================================================================
--- cocoon/whiteboard/kernel/src/org/apache/cocoon/kernel/runtime/Factory.java	(original)
+++ cocoon/whiteboard/kernel/src/org/apache/cocoon/kernel/runtime/Factory.java	Sun Oct 31
19:24:47 2004
@@ -21,6 +21,7 @@
 import org.apache.cocoon.kernel.KernelException;
 import org.apache.cocoon.kernel.configuration.Configuration;
 import org.apache.cocoon.kernel.configuration.ConfigurationBuilder;
+import org.apache.cocoon.kernel.description.Abstract;
 import org.apache.cocoon.kernel.description.Block;
 import org.apache.cocoon.kernel.description.Descriptor;
 import org.apache.cocoon.kernel.description.Interface;
@@ -56,7 +57,9 @@
             String href = current.getStringAttribute("href");
             URL url = new URL(config.locationURL(), href);
             Configuration descriptor = ConfigurationBuilder.parse(url);
-            if ("block".equals(descriptor.name())) {
+            if ("abstract".equals(descriptor.name())) {
+                library.add(new Abstract(descriptor));
+            } else if ("block".equals(descriptor.name())) {
                 library.add(new Block(descriptor));
             } else if ("interface".equals(descriptor.name())) {
                 library.add(new Interface(descriptor));

Mime
View raw message