41673bce721a6d028b50fd4172a10d6a9236e8d0
[controller.git] / opendaylight / config / config-api / src / main / java / org / opendaylight / controller / config / api / RuntimeBeanRegistratorAwareModule.java
1 /*
2  * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
3  *
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
7  */
8 package org.opendaylight.controller.config.api;
9
10 import org.opendaylight.controller.config.api.runtime.RootRuntimeBeanRegistrator;
11 import org.opendaylight.controller.config.spi.Module;
12
13 /**
14  * Module implementing this interface will receive
15  * {@link RootRuntimeBeanRegistrator} before getInstance() is invoked.
16  */
17 public interface RuntimeBeanRegistratorAwareModule extends Module {
18     /**
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.
23      *
24      * @param rootRuntimeBeanRegistrator
25      */
26     void setRuntimeBeanRegistrator(
27             RootRuntimeBeanRegistrator rootRuntimeBeanRegistrator);
28
29 }