diff options
Diffstat (limited to 'sca-java-2.x')
-rw-r--r-- | sca-java-2.x/trunk/distribution/tomcat/tomcat-hook/src/main/java/org/apache/tuscany/sca/tomcat/TuscanyLifecycleListener.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sca-java-2.x/trunk/distribution/tomcat/tomcat-hook/src/main/java/org/apache/tuscany/sca/tomcat/TuscanyLifecycleListener.java b/sca-java-2.x/trunk/distribution/tomcat/tomcat-hook/src/main/java/org/apache/tuscany/sca/tomcat/TuscanyLifecycleListener.java index 169848049b..a9eee9687e 100644 --- a/sca-java-2.x/trunk/distribution/tomcat/tomcat-hook/src/main/java/org/apache/tuscany/sca/tomcat/TuscanyLifecycleListener.java +++ b/sca-java-2.x/trunk/distribution/tomcat/tomcat-hook/src/main/java/org/apache/tuscany/sca/tomcat/TuscanyLifecycleListener.java @@ -55,6 +55,8 @@ public class TuscanyLifecycleListener implements LifecycleListener { static final String TUSCANY_SHARED_PROP = "org.apache.tuscany.sca.tomcat.shared"; + private static String domainURI = "tuscany:default"; + public TuscanyLifecycleListener() { running = true; log.info("Apache Tuscany initilizing"); @@ -148,4 +150,12 @@ public class TuscanyLifecycleListener implements LifecycleListener { } return null; } + + public void setDomainURI(String domainURI) { + TuscanyLifecycleListener.domainURI = domainURI; + } + + public static String getDomainURI() { + return domainURI; + } } |