summaryrefslogtreecommitdiffstats
path: root/java/sca
diff options
context:
space:
mode:
authorrfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68>2009-05-27 01:12:21 +0000
committerrfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68>2009-05-27 01:12:21 +0000
commit021dce4129acf115010b464192d1ef0c96f02831 (patch)
treeb5f1bc0ffa8b46694d648653a70a414df318e27c /java/sca
parent21f1cc59989e11e5509ea48811fdf317941f66ad (diff)
Add bundleentry protocol
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@778947 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/sca')
-rw-r--r--java/sca/modules/contribution-osgi/src/main/java/org/apache/tuscany/sca/contribution/osgi/impl/OSGiBundleActivator.java9
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) {