BUG-1281: cache TransformerFactory and Transformer 80/8580/3
authorRobert Varga <rovarga@cisco.com>
Wed, 2 Jul 2014 19:00:03 +0000 (21:00 +0200)
committerRobert Varga <rovarga@cisco.com>
Thu, 3 Jul 2014 11:18:04 +0000 (11:18 +0000)
commit8123dba37b873c6e95108ba1ce8f021d950f6541
tree833c9d315b0274ab3f7c5346afac703ca0aa4793
parent5722cbffafe8f662119fa3d8fbd41d1866731f8e
BUG-1281: cache TransformerFactory and Transformer

The code used to instantiate a TransformerFactory for each individual
request, where a single factory can be shared between threads as long as
it is not reconfigured.

As a futher optimization, we also create a thread-local cache for
transformers, as they can be use for multiple transformations.

Change-Id: I836148208be62f66cb6b509b0746e9fb92a569f0
Signed-off-by: Robert Varga <rovarga@cisco.com>
opendaylight/md-sal/sal-rest-connector/src/main/java/org/opendaylight/controller/sal/rest/impl/StructuredDataToXmlProvider.java