| Index: sky/shell/android/org/domokit/sky/shell/ServiceRegistry.java
|
| diff --git a/sky/shell/android/org/domokit/sky/shell/ServiceRegistry.java b/sky/shell/android/org/domokit/sky/shell/ServiceRegistry.java
|
| index 49affd14353c2d8f4de7ae39facef9748e36728d..efb60ab1018f3fcdfd83b2b487973b2a8f2d9521 100644
|
| --- a/sky/shell/android/org/domokit/sky/shell/ServiceRegistry.java
|
| +++ b/sky/shell/android/org/domokit/sky/shell/ServiceRegistry.java
|
| @@ -4,6 +4,8 @@
|
|
|
| package org.domokit.sky.shell;
|
|
|
| +import android.util.Log;
|
| +
|
| import java.util.Map;
|
| import java.util.TreeMap;
|
|
|
| @@ -11,6 +13,7 @@ import java.util.TreeMap;
|
| * An registry for services.
|
| **/
|
| public class ServiceRegistry {
|
| + private static final String TAG = "ServiceRegistry";
|
| private Map<String, ServiceFactory> mRegistrations;
|
|
|
| public static final ServiceRegistry SHARED = new ServiceRegistry();
|
| @@ -26,6 +29,8 @@ public class ServiceRegistry {
|
| }
|
|
|
| public ServiceFactory get(String interfaceName) {
|
| + if (!mRegistrations.containsKey(interfaceName))
|
| + Log.e(TAG, "Unknown service " + interfaceName);
|
| return mRegistrations.get(interfaceName);
|
| }
|
| }
|
|
|