Remove static state and default beans from RuntimeMappingModuleFactory,SchemaServiceI... 96/5496/1
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)
commitb0bbef6cf2130fad050eee34e70d70138b8b0590
tree90a2898c8bcb295ac7fe36e1b66b6966621f457d
parent660841076fc94db5ce3c73e194c9d1b1172eeb49
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