2e6e0f34e6a46722dc2cc74b05ebbcbe46e996f5
[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     public void setRuntimeBeanRegistrator(
27             RootRuntimeBeanRegistrator rootRuntimeBeanRegistrator);
28
29 }

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.