cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From reinh...@apache.org
Subject svn commit: r671048 - /cocoon/whiteboard/corona/trunk/corona-servlet/src/main/java/org/apache/cocoon/corona/servlet/util/ObjectModelProvider.java
Date Tue, 24 Jun 2008 07:17:35 GMT
Author: reinhard
Date: Tue Jun 24 00:17:35 2008
New Revision: 671048

URL: http://svn.apache.org/viewvc?rev=671048&view=rev
Log:
. encapsulate creation of the corona object

Modified:
    cocoon/whiteboard/corona/trunk/corona-servlet/src/main/java/org/apache/cocoon/corona/servlet/util/ObjectModelProvider.java

Modified: cocoon/whiteboard/corona/trunk/corona-servlet/src/main/java/org/apache/cocoon/corona/servlet/util/ObjectModelProvider.java
URL: http://svn.apache.org/viewvc/cocoon/whiteboard/corona/trunk/corona-servlet/src/main/java/org/apache/cocoon/corona/servlet/util/ObjectModelProvider.java?rev=671048&r1=671047&r2=671048&view=diff
==============================================================================
--- cocoon/whiteboard/corona/trunk/corona-servlet/src/main/java/org/apache/cocoon/corona/servlet/util/ObjectModelProvider.java
(original)
+++ cocoon/whiteboard/corona/trunk/corona-servlet/src/main/java/org/apache/cocoon/corona/servlet/util/ObjectModelProvider.java
Tue Jun 24 00:17:35 2008
@@ -16,7 +16,6 @@
  */
 package org.apache.cocoon.corona.servlet.util;
 
-import java.util.HashMap;
 import java.util.Map;
 
 import javax.servlet.http.HttpServletRequest;
@@ -27,9 +26,8 @@
 public class ObjectModelProvider {
 
     public static ObjectModel provide(Map<String, Object> parameters) {
-        Map<String, Object> corona = new HashMap<String, Object>();
         ObjectModel objectModel = new ObjectModel();
-        objectModel.setCoronaObject(corona);
+        Map<String, Object> corona = objectModel.getCoronaObject();
 
         HttpServletRequest request = HttpContextHelper.getRequest(parameters);
         corona.put("request", new ObjectModelRequest(request));



Mime
View raw message