git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1387165 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Claus Ibsen 2012-09-18 13:55:24 +00:00
parent 093b0e2370
commit 26806e7798
1 changed files with 4 additions and 3 deletions

View File

@ -20,6 +20,7 @@ import java.io.IOException;
import java.io.InputStream; import java.io.InputStream;
import java.io.InputStreamReader; import java.io.InputStreamReader;
import java.io.BufferedReader; import java.io.BufferedReader;
import java.util.List;
import java.util.Properties; import java.util.Properties;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ConcurrentHashMap;
@ -148,7 +149,7 @@ public class Activator implements BundleActivator, SynchronousBundleListener, Ob
String className = properties.getProperty("class"); String className = properties.getProperty("class");
if (className == null) { if (className == null) {
warnings.append("("+(wrrningCounter++)+") Invalid sevice file in bundle "+wrapper+": 'class' property not defined."); warnings.append("("+(wrrningCounter++)+") Invalid service file in bundle "+wrapper+": 'class' property not defined.");
continue; continue;
} }
@ -166,7 +167,7 @@ public class Activator implements BundleActivator, SynchronousBundleListener, Ob
} }
if( clazz == null ) { if( clazz == null ) {
// Since OSGi is such a tricky enviorment to work in.. lets give folks the // Since OSGi is such a tricky environment to work in.. lets give folks the
// most information we can in the error message. // most information we can in the error message.
String msg = "Service not found: '" + path + "'"; String msg = "Service not found: '" + path + "'";
if (warnings.length()!= 0) { if (warnings.length()!= 0) {
@ -218,7 +219,7 @@ public class Activator implements BundleActivator, SynchronousBundleListener, Ob
private static class BundleWrapper { private static class BundleWrapper {
private final Bundle bundle; private final Bundle bundle;
private final ArrayList<String> cachedServices = new ArrayList<String>(); private final List<String> cachedServices = new ArrayList<String>();
public BundleWrapper(Bundle bundle) { public BundleWrapper(Bundle bundle) {
this.bundle = bundle; this.bundle = bundle;