Remove static state and default beans from RuntimeMappingModuleFactory,SchemaServiceI...
authorTomas Olvecky <tolvecky@cisco.com>
Fri, 28 Feb 2014 10:27:13 +0000 (11:27 +0100)
committerTomas Olvecky <tolvecky@cisco.com>
Fri, 28 Feb 2014 10:45:16 +0000 (11:45 +0100)
commite497110108fb8b8c15ebed8d9b0ae8bbd7e78c74
tree7534f170dbee0e9e317965a0455db84cd45349d5
parent96627cfd89800524df3eb5534962a236da720974
Remove static state and default beans from RuntimeMappingModuleFactory,SchemaServiceImplSingletonModuleFactory.

Remove static reference from factories as this breaks tests: it is useful to tear down config subsystem
between tests, but there is no way to clean up static fields.
Since default beans are discouraged, rework those factories to enforce instance naming so that only a single
instance can be created.
01-md-sal.xml already creates both modules.

Change-Id: I5efbe12b349ae82bfff12ae9a767505a66df2f90
Signed-off-by: Tomas Olvecky <tolvecky@cisco.com>
opendaylight/md-sal/sal-binding-broker/src/main/java/org/opendaylight/controller/config/yang/md/sal/binding/impl/RuntimeMappingModuleFactory.java
opendaylight/md-sal/sal-dom-broker/src/main/java/org/opendaylight/controller/config/yang/md/sal/dom/impl/SchemaServiceImplSingletonModuleFactory.java