]> git.argeo.org Git - lgpl/argeo-commons.git/blobdiff - org.argeo.cms/src/org/argeo/cms/util/SimpleApp.java
Merge security.ui bundle in the cms.ui.workbench bundle
[lgpl/argeo-commons.git] / org.argeo.cms / src / org / argeo / cms / util / SimpleApp.java
index e5036fe6309c5a340a79d5beffa2fe47a727db66..39e75070b450c032cc3665b427925802b680b82d 100644 (file)
@@ -88,8 +88,8 @@ public class SimpleApp implements CmsConstants, ApplicationConfiguration {
 
                        for (String resource : resources) {
                                application.addResource(resource, bundleRL);
-                               if (log.isDebugEnabled())
-                                       log.debug("Resource " + resource);
+                               if (log.isTraceEnabled())
+                                       log.trace("Resource " + resource);
                        }
 
                        Map<String, String> defaultBranding = null;
@@ -142,8 +142,8 @@ public class SimpleApp implements CmsConstants, ApplicationConfiguration {
                                        log.debug("Theme " + themeId);
                                for (String css : cssLst) {
                                        application.addStyleSheet(themeId, css, styleSheetRL);
-                                       if (log.isDebugEnabled())
-                                               log.debug(" CSS " + css);
+                                       if (log.isTraceEnabled())
+                                               log.trace(" CSS " + css);
                                }
 
                        }
@@ -271,10 +271,15 @@ public class SimpleApp implements CmsConstants, ApplicationConfiguration {
                this.resources = resources;
        }
 
+       public void setContextName(String contextName) {
+               this.contextName = contextName;
+       }
+
        class CmsExceptionHandler implements ExceptionHandler {
 
                @Override
                public void handleException(Throwable throwable) {
+                       // TODO be smarter
                        CmsUtils.getCmsView().exception(throwable);
                }