Make context name writable
[lgpl/argeo-commons.git] / 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);
                }