Improve extensibility and logging.
[lgpl/argeo-commons.git] / org.argeo.cms.e4.rap / src / org / argeo / cms / e4 / rap / AbstractRapE4App.java
index 8bf16a265c6665a3b1aaa22b613b654a306ae4c6..17c85ffb46630ec79d0073938446e06045af6250 100644 (file)
@@ -21,7 +21,7 @@ public abstract class AbstractRapE4App implements ApplicationConfiguration {
        private Map<String, String> baseProperties = new HashMap<String, String>();
 
        private BundleContext bundleContext;
-       private final static String CONTEXT_NAME_PROPERTY = "contextName";
+       public final static String CONTEXT_NAME_PROPERTY = "contextName";
        private String contextName;
 
        /**
@@ -105,10 +105,14 @@ public abstract class AbstractRapE4App implements ApplicationConfiguration {
                return bundleContext;
        }
 
-       protected String getContextName() {
+       public String getContextName() {
                return contextName;
        }
 
+       public void setContextName(String contextName) {
+               this.contextName = contextName;
+       }
+
        public void init(BundleContext bundleContext, Map<String, Object> properties) {
                this.bundleContext = bundleContext;
                for (String key : properties.keySet()) {