Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(258)

Unified Diff: sky/shell/org/domokit/sky/shell/ServiceRegistry.java

Issue 1139873004: Make android directory for Android-specific bits of SkyShell (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: sky/shell/org/domokit/sky/shell/ServiceRegistry.java
diff --git a/sky/shell/org/domokit/sky/shell/ServiceRegistry.java b/sky/shell/org/domokit/sky/shell/ServiceRegistry.java
deleted file mode 100644
index 49affd14353c2d8f4de7ae39facef9748e36728d..0000000000000000000000000000000000000000
--- a/sky/shell/org/domokit/sky/shell/ServiceRegistry.java
+++ /dev/null
@@ -1,31 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-package org.domokit.sky.shell;
-
-import java.util.Map;
-import java.util.TreeMap;
-
-/**
- * An registry for services.
- **/
-public class ServiceRegistry {
- private Map<String, ServiceFactory> mRegistrations;
-
- public static final ServiceRegistry SHARED = new ServiceRegistry();
-
- private ServiceRegistry() {
- mRegistrations = new TreeMap<String, ServiceFactory>();
- }
-
- public void register(String interfaceName, ServiceFactory connector) {
- assert !mRegistrations.containsKey(interfaceName);
- assert connector != null;
- mRegistrations.put(interfaceName, connector);
- }
-
- public ServiceFactory get(String interfaceName) {
- return mRegistrations.get(interfaceName);
- }
-}
« no previous file with comments | « sky/shell/org/domokit/sky/shell/ServiceFactory.java ('k') | sky/shell/org/domokit/sky/shell/SkyActivity.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698