| 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..73c87d77a55a2f7b57af18161585271145a912a7 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,9 @@ public class ServiceRegistry {
|
| }
|
|
|
| public ServiceFactory get(String interfaceName) {
|
| + if (!mRegistrations.containsKey(interfaceName)) {
|
| + Log.e(TAG, "Unknown service " + interfaceName);
|
| + }
|
| return mRegistrations.get(interfaceName);
|
| }
|
| }
|
|
|