diff options
author | rfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68> | 2009-05-27 01:12:21 +0000 |
---|---|---|
committer | rfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68> | 2009-05-27 01:12:21 +0000 |
commit | 021dce4129acf115010b464192d1ef0c96f02831 (patch) | |
tree | b5f1bc0ffa8b46694d648653a70a414df318e27c | |
parent | 21f1cc59989e11e5509ea48811fdf317941f66ad (diff) |
Add bundleentry protocol
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@778947 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | java/sca/modules/contribution-osgi/src/main/java/org/apache/tuscany/sca/contribution/osgi/impl/OSGiBundleActivator.java | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/java/sca/modules/contribution-osgi/src/main/java/org/apache/tuscany/sca/contribution/osgi/impl/OSGiBundleActivator.java b/java/sca/modules/contribution-osgi/src/main/java/org/apache/tuscany/sca/contribution/osgi/impl/OSGiBundleActivator.java index ac7ff7b4ea..af13d2ee98 100644 --- a/java/sca/modules/contribution-osgi/src/main/java/org/apache/tuscany/sca/contribution/osgi/impl/OSGiBundleActivator.java +++ b/java/sca/modules/contribution-osgi/src/main/java/org/apache/tuscany/sca/contribution/osgi/impl/OSGiBundleActivator.java @@ -6,15 +6,15 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations - * under the License. + * under the License. */ package org.apache.tuscany.sca.contribution.osgi.impl; @@ -135,7 +135,8 @@ public class OSGiBundleActivator implements BundleActivator { public static Bundle findBundle(String bundleLocation) { if (bundleContext != null) { - if (bundleLocation.startsWith("bundle:") || bundleLocation.startsWith("bundleresource:")) { + if (bundleLocation.startsWith("bundle:") || bundleLocation.startsWith("bundleresource:") + || bundleLocation.startsWith("bundleentry:")) { try { return findBundle(new URL(bundleLocation)); } catch (MalformedURLException e) { |