]> git.argeo.org Git - lgpl/argeo-commons.git/blobdiff - server/runtime/org.argeo.server.core/src/main/java/org/argeo/server/mvc/SerializingViewResolver.java
Update license headers
[lgpl/argeo-commons.git] / server / runtime / org.argeo.server.core / src / main / java / org / argeo / server / mvc / SerializingViewResolver.java
index 26eab418a47b2e3468fcd67ade64bb1bc4f6b71c..19bbe05b23b1d22a27ee8349d5a4fa628c8749d5 100644 (file)
@@ -1,7 +1,24 @@
+/*
+ * Copyright (C) 2007-2012 Mathieu Baudier
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *         http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 package org.argeo.server.mvc;
 
 import java.util.Locale;
 
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
 import org.argeo.server.ServerSerializer;
 import org.springframework.web.servlet.View;
 import org.springframework.web.servlet.view.AbstractCachingViewResolver;
@@ -10,10 +27,15 @@ import org.springframework.web.servlet.view.AbstractCachingViewResolver;
  * Returns a {@link SerializingView} based on the underlying.
  */
 public class SerializingViewResolver extends AbstractCachingViewResolver {
+       private final static Log log = LogFactory
+                       .getLog(SerializingViewResolver.class);
+
        private ServerSerializer serializer;
 
        @Override
        protected View loadView(String viewName, Locale locale) throws Exception {
+               if (log.isTraceEnabled())
+                       log.trace("viewName=" + viewName);
                return new SerializingView(viewName, locale, serializer);
        }