diff options
author | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2010-01-08 13:10:09 +0000 |
---|---|---|
committer | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2010-01-08 13:10:09 +0000 |
commit | 6d887a14cd16a88ce432fcc51aad3aaf3339b78f (patch) | |
tree | d670f4a3a93e04f8e67cf55989b9b4eceab1c53d /sca-java-2.x/trunk/distribution/tomcat/tomcat-hook/src/main/java | |
parent | 30fba2ec92a949d40b6a3186fa66c0907e143b6c (diff) |
Add a global default domain uri. A temp approach for now to get the basic tomcat shared domain working distributed
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@897194 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/distribution/tomcat/tomcat-hook/src/main/java')
-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; + } } |