summaryrefslogtreecommitdiffstats
path: root/java/sca/modules/extensibility
diff options
context:
space:
mode:
authorrsivaram <rsivaram@13f79535-47bb-0310-9956-ffa450edef68>2008-07-03 12:59:48 +0000
committerrsivaram <rsivaram@13f79535-47bb-0310-9956-ffa450edef68>2008-07-03 12:59:48 +0000
commit668696fac17058aeab5ca6fef79490ca5c8874a0 (patch)
tree82e4e963464f1f10bb9cb3518f9ee668fc62f271 /java/sca/modules/extensibility
parentaf13b17fdca8f3936596a8dffc6c7ef9a197267a (diff)
Fixes for itest/osgi-tuscany and Felix versions
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@673669 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/sca/modules/extensibility')
-rw-r--r--java/sca/modules/extensibility/src/main/java/org/apache/tuscany/sca/extensibility/ServiceDiscovery.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/java/sca/modules/extensibility/src/main/java/org/apache/tuscany/sca/extensibility/ServiceDiscovery.java b/java/sca/modules/extensibility/src/main/java/org/apache/tuscany/sca/extensibility/ServiceDiscovery.java
index fcf7843fa9..45a4494f24 100644
--- a/java/sca/modules/extensibility/src/main/java/org/apache/tuscany/sca/extensibility/ServiceDiscovery.java
+++ b/java/sca/modules/extensibility/src/main/java/org/apache/tuscany/sca/extensibility/ServiceDiscovery.java
@@ -96,7 +96,7 @@ public class ServiceDiscovery {
* @return set of service declarations
* @throws IOException
*/
- public Set<ServiceDeclaration> getServiceDeclarations(String name) throws IOException {
+ public synchronized Set<ServiceDeclaration> getServiceDeclarations(String name) throws IOException {
Set<ServiceDeclaration> classSet = new HashSet<ServiceDeclaration>();
@@ -126,7 +126,7 @@ public class ServiceDiscovery {
* @throws IOException
* @throws ClassNotFoundException
*/
- public Class<?> loadFirstServiceClass(Class<?> serviceInterface) throws IOException, ClassNotFoundException {
+ public synchronized Class<?> loadFirstServiceClass(Class<?> serviceInterface) throws IOException, ClassNotFoundException {
Set<ServiceDeclaration> classSet = new HashSet<ServiceDeclaration>();
@@ -151,7 +151,7 @@ public class ServiceDiscovery {
* @return Table of URLs with associated ClassLoaders
* @throws IOException
*/
- public Hashtable<ClassLoader, Set<URL>> getServiceResources(final String name) throws IOException {
+ public synchronized Hashtable<ClassLoader, Set<URL>> getServiceResources(final String name) throws IOException {
Hashtable<ClassLoader, Set<URL>> resourceTable = new Hashtable<ClassLoader, Set<URL>>();