cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lgaw...@apache.org
Subject svn commit: r433986 - /cocoon/trunk/core/cocoon-core/src/main/java/org/apache/cocoon/environment/TemplateObjectModelHelper.java
Date Wed, 23 Aug 2006 09:08:23 GMT
Author: lgawron
Date: Wed Aug 23 02:08:23 2006
New Revision: 433986

URL: http://svn.apache.org/viewvc?rev=433986&view=rev
Log:
cocoon settings directly exposed in template object model
wait a little bit for Map wrapper

Modified:
    cocoon/trunk/core/cocoon-core/src/main/java/org/apache/cocoon/environment/TemplateObjectModelHelper.java

Modified: cocoon/trunk/core/cocoon-core/src/main/java/org/apache/cocoon/environment/TemplateObjectModelHelper.java
URL: http://svn.apache.org/viewvc/cocoon/trunk/core/cocoon-core/src/main/java/org/apache/cocoon/environment/TemplateObjectModelHelper.java?rev=433986&r1=433985&r2=433986&view=diff
==============================================================================
--- cocoon/trunk/core/cocoon-core/src/main/java/org/apache/cocoon/environment/TemplateObjectModelHelper.java
(original)
+++ cocoon/trunk/core/cocoon-core/src/main/java/org/apache/cocoon/environment/TemplateObjectModelHelper.java
Wed Aug 23 02:08:23 2006
@@ -127,6 +127,12 @@
             cocoon.put("parameters", new ParametersMap(parameters));
         }
 
+        Processor processor = EnvironmentHelper.getCurrentProcessor();
+        if (processor != null) {
+            final Settings settings = (Settings) processor.getBeanFactory().getBean(Settings.ROLE);
+            cocoon.put("settings", settings);
+        }
+
         final Map map = new HashMap();
         map.put("cocoon", cocoon);
 



Mime
View raw message