From 6a633dee838417ed68cf91fbd2e9b3b9fa07bd8f Mon Sep 17 00:00:00 2001 From: jsdelfino Date: Fri, 19 Sep 2008 05:31:14 +0000 Subject: Simplified ServiceDiscoverer. Started to use it to create factories to resolve ClassNotFoundExceptions. Renamed calculator-osgi to calculator-equinox and a few fixes to get it working in Eclipse. git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@696924 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/tuscany/sca/node/impl/RuntimeBootStrapper.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'branches/sca-equinox/modules/node-impl/src/main/java/org/apache/tuscany/sca/node/impl/RuntimeBootStrapper.java') diff --git a/branches/sca-equinox/modules/node-impl/src/main/java/org/apache/tuscany/sca/node/impl/RuntimeBootStrapper.java b/branches/sca-equinox/modules/node-impl/src/main/java/org/apache/tuscany/sca/node/impl/RuntimeBootStrapper.java index 5b0e31fd03..15a348afd8 100644 --- a/branches/sca-equinox/modules/node-impl/src/main/java/org/apache/tuscany/sca/node/impl/RuntimeBootStrapper.java +++ b/branches/sca-equinox/modules/node-impl/src/main/java/org/apache/tuscany/sca/node/impl/RuntimeBootStrapper.java @@ -299,6 +299,7 @@ public class RuntimeBootStrapper { //now that all system sca definitions have been read, lets resolve them right away definitionsProcessor.resolve(systemSCADefinitions, policyDefinitionsResolver); + } catch (Exception e) { throw new ActivationException(e); } @@ -310,7 +311,7 @@ public class RuntimeBootStrapper { modules = new ArrayList(); try { Set moduleActivators = - ServiceDiscovery.getInstance().getServiceDeclarations(ModuleActivator.class); + ServiceDiscovery.getInstance().getServiceDeclarations(ModuleActivator.class.getName()); Set moduleClasses = new HashSet(); for (ServiceDeclaration moduleDeclarator : moduleActivators) { if (moduleClasses.contains(moduleDeclarator.getClassName())) { -- cgit v1.2.3