BUG-2459: do not instantiate factories in fastpath 60/13560/2
authorRobert Varga <rovarga@cisco.com>
Thu, 11 Dec 2014 10:08:26 +0000 (11:08 +0100)
committerRobert Varga <nite@hq.sk>
Fri, 12 Dec 2014 12:40:21 +0000 (12:40 +0000)
commita69a67c76a04a89d870e9f12df7919cbeb0d5001
tree3047dc69aa542641ef13a6f4c361509f04450a7d
parent672ac242bf3acc6c9eaf80071be5f74cab8c9b3b
BUG-2459: do not instantiate factories in fastpath

This caches the factories in static fields rather than instantiating
them on each call.

Change-Id: I4dfee7724320914f2c7c9724192e4653deea3cde
Signed-off-by: Robert Varga <rovarga@cisco.com>
opendaylight/netconf/netconf-util/src/main/java/org/opendaylight/controller/netconf/util/xml/XMLNetconfUtil.java
opendaylight/netconf/netconf-util/src/main/java/org/opendaylight/controller/netconf/util/xml/XmlUtil.java