Make context name writable
authorMathieu Baudier <mbaudier@argeo.org>
Thu, 29 Oct 2015 19:31:34 +0000 (19:31 +0000)
committerMathieu Baudier <mbaudier@argeo.org>
Thu, 29 Oct 2015 19:31:34 +0000 (19:31 +0000)
git-svn-id: https://svn.argeo.org/commons/trunk@8538 4cfe0d0a-d680-48aa-b62c-e0a02a3f76cc

org.argeo.cms/src/org/argeo/cms/util/SimpleApp.java

index e5036fe6309c5a340a79d5beffa2fe47a727db66..5dc8822d6ae8b9dbd07f10e565907ca1c195dc9a 100644 (file)
@@ -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);
                }