X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fconfig%2Fconfig-api%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fconfig%2Fspi%2FModule.java;h=4766ad8a47d3ce2c9ffc1a6f81ea11bf3818905a;hp=b557108d4d00a39b988d7f82e5e4bb3bc41957b3;hb=3314dddc5692bed5eb837b0739ac3bb5ed1962ab;hpb=e8d56c4814a987cc0d52dc7e5c30947d30183446 diff --git a/opendaylight/config/config-api/src/main/java/org/opendaylight/controller/config/spi/Module.java b/opendaylight/config/config-api/src/main/java/org/opendaylight/controller/config/spi/Module.java index b557108d4d..4766ad8a47 100644 --- a/opendaylight/config/config-api/src/main/java/org/opendaylight/controller/config/spi/Module.java +++ b/opendaylight/config/config-api/src/main/java/org/opendaylight/controller/config/spi/Module.java @@ -54,4 +54,17 @@ public interface Module extends Identifiable{ */ AutoCloseable getInstance(); + + /** + * Compare current module with oldModule and if the instance/live object + * produced by the old module can be reused in this module as well return true. + * Typically true should be returned if the old module had the same configuration. + * + * + * @param oldModule old instance of Module + * @return true if the instance produced by oldModule can be reused with current instance as well. + */ + boolean canReuse(Module oldModule); + + }