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.api;
10 import org.opendaylight.controller.config.api.runtime.RootRuntimeBeanRegistrator;
11 import org.opendaylight.controller.config.spi.Module;
14 * Module implementing this interface will receive
15 * {@link RootRuntimeBeanRegistrator} before getInstance() is invoked.
17 public interface RuntimeBeanRegistratorAwareModule extends Module {
19 * Configuration framework will call this setter on all modules implementing
20 * this interface. It is responsibility of modules or rather their instances
21 * to close registrator in their {@link Closeable#close()} method. Same
22 * module will get the same registrator during reconfiguration.
24 * @param rootRuntimeBeanRegistrator
26 public void setRuntimeBeanRegistrator(
27 RootRuntimeBeanRegistrator rootRuntimeBeanRegistrator);