click-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sa...@apache.org
Subject svn commit: r956733 - /click/trunk/click/framework/src/org/apache/click/service/XmlConfigService.java
Date Mon, 21 Jun 2010 23:28:30 GMT
Author: sabob
Date: Mon Jun 21 23:28:30 2010
New Revision: 956733

URL: http://svn.apache.org/viewvc?rev=956733&view=rev
Log:
kept source code service alphabetical order

Modified:
    click/trunk/click/framework/src/org/apache/click/service/XmlConfigService.java

Modified: click/trunk/click/framework/src/org/apache/click/service/XmlConfigService.java
URL: http://svn.apache.org/viewvc/click/trunk/click/framework/src/org/apache/click/service/XmlConfigService.java?rev=956733&r1=956732&r2=956733&view=diff
==============================================================================
--- click/trunk/click/framework/src/org/apache/click/service/XmlConfigService.java (original)
+++ click/trunk/click/framework/src/org/apache/click/service/XmlConfigService.java Mon Jun
21 23:28:30 2010
@@ -1576,6 +1576,39 @@ public class XmlConfigService implements
         getLogService().info(msg);
     }
 
+    private void loadMessagesMapService(Element rootElm) throws Exception {
+        Element messagesMapServiceElm = ClickUtils.getChild(rootElm, "messages-map-service");
+
+        if (messagesMapServiceElm != null) {
+            Class messagesMapServiceClass = DefaultMessagesMapService.class;
+
+            String classname = messagesMapServiceElm.getAttribute("classname");
+
+            if (StringUtils.isNotBlank(classname)) {
+                messagesMapServiceClass = ClickUtils.classForName(classname);
+            }
+
+            messagesMapService = (MessagesMapService) messagesMapServiceClass.newInstance();
+
+            Map propertyMap = loadPropertyMap(messagesMapServiceElm);
+
+            for (Iterator i = propertyMap.keySet().iterator(); i.hasNext();) {
+                String name = i.next().toString();
+                String value = propertyMap.get(name).toString();
+
+                Ognl.setValue(name, messagesMapService, value);
+            }
+        }
+
+        if (getLogService().isDebugEnabled()) {
+            String msg = "initializing MessagesMapService: "
+                + messagesMapService.getClass().getName();
+            getLogService().debug(msg);
+        }
+
+        messagesMapService.onInit(servletContext);
+    }
+
     private void loadPageInterceptors(Element rootElm) throws Exception {
         List<Element> interceptorList =
             ClickUtils.getChildren(rootElm, "page-interceptor");
@@ -1678,39 +1711,6 @@ public class XmlConfigService implements
         templateService.onInit(servletContext);
     }
 
-    private void loadMessagesMapService(Element rootElm) throws Exception {
-        Element messagesMapServiceElm = ClickUtils.getChild(rootElm, "messages-map-service");
-
-        if (messagesMapServiceElm != null) {
-            Class messagesMapServiceClass = DefaultMessagesMapService.class;
-
-            String classname = messagesMapServiceElm.getAttribute("classname");
-
-            if (StringUtils.isNotBlank(classname)) {
-                messagesMapServiceClass = ClickUtils.classForName(classname);
-            }
-
-            messagesMapService = (MessagesMapService) messagesMapServiceClass.newInstance();
-
-            Map propertyMap = loadPropertyMap(messagesMapServiceElm);
-
-            for (Iterator i = propertyMap.keySet().iterator(); i.hasNext();) {
-                String name = i.next().toString();
-                String value = propertyMap.get(name).toString();
-
-                Ognl.setValue(name, messagesMapService, value);
-            }
-        }
-
-        if (getLogService().isDebugEnabled()) {
-            String msg = "initializing MessagesMapService: "
-                + messagesMapService.getClass().getName();
-            getLogService().debug(msg);
-        }
-
-        messagesMapService.onInit(servletContext);
-    }
-    
     private static Map loadPropertyMap(Element parentElm) {
         Map propertyMap = new HashMap();
 



Mime
View raw message