You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by ne...@apache.org on 2007/02/27 13:42:27 UTC

svn commit: r512238 - /lenya/branches/trunk-rework-pubconf/src/pubs/default/java/src/org/apache/lenya/defaultpub/cms/publication/templating/Instantiator.java

Author: nettings
Date: Tue Feb 27 04:42:26 2007
New Revision: 512238

URL: http://svn.apache.org/viewvc?view=rev&rev=512238
Log:
slightly changed the usage of interface vs. object types, i hope this makes sense.
no change in functionality.

Modified:
    lenya/branches/trunk-rework-pubconf/src/pubs/default/java/src/org/apache/lenya/defaultpub/cms/publication/templating/Instantiator.java

Modified: lenya/branches/trunk-rework-pubconf/src/pubs/default/java/src/org/apache/lenya/defaultpub/cms/publication/templating/Instantiator.java
URL: http://svn.apache.org/viewvc/lenya/branches/trunk-rework-pubconf/src/pubs/default/java/src/org/apache/lenya/defaultpub/cms/publication/templating/Instantiator.java?view=diff&rev=512238&r1=512237&r2=512238
==============================================================================
--- lenya/branches/trunk-rework-pubconf/src/pubs/default/java/src/org/apache/lenya/defaultpub/cms/publication/templating/Instantiator.java (original)
+++ lenya/branches/trunk-rework-pubconf/src/pubs/default/java/src/org/apache/lenya/defaultpub/cms/publication/templating/Instantiator.java Tue Feb 27 04:42:26 2007
@@ -148,8 +148,8 @@
                     + newPublicationId + "/config/publication.xconf");
 
             final boolean ENABLE_XML_NAMESPACES = true;
-            MutableConfiguration config = 
-                    (MutableConfiguration) new DefaultConfigurationBuilder(ENABLE_XML_NAMESPACES).build(configSource.getInputStream());
+            DefaultConfiguration config = 
+                    (DefaultConfiguration) new DefaultConfigurationBuilder(ENABLE_XML_NAMESPACES).build(configSource.getInputStream());
             addTemplateConfiguration(template, config);
             
             removeChildren(config.getMutableChild("modules"), "module");
@@ -177,7 +177,7 @@
         }
     }
 
-    protected void addTemplateConfiguration(Publication template, MutableConfiguration config) throws ConfigurationException {
+    protected void addTemplateConfiguration(Publication template, DefaultConfiguration config) throws ConfigurationException {
         MutableConfiguration templatesConfig = config.getMutableChild("templates", false);
         if (templatesConfig == null) {
             templatesConfig = new DefaultConfiguration("templates");



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org