2 * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.controller.config.manager.impl.factoriesresolver;
10 import org.opendaylight.controller.config.spi.ModuleFactory;
11 import org.osgi.framework.BundleContext;
16 * {@link org.opendaylight.controller.config.manager.impl.ConfigTransactionControllerImpl}
17 * receives list of factories using this interface. For testing, this could be
18 * implemented as hard coded list of objects, for OSGi this would look for all
19 * services in OSGi Service Registry are registered under
20 * {@link org.opendaylight.controller.config.spi.ModuleFactory} name.
22 public interface ModuleFactoriesResolver {
24 Map<String, Map.Entry<ModuleFactory, BundleContext>> getAllFactories();