Package fr.gouv.vitam.worker.core
Class MarshallerObjectCache
java.lang.Object
fr.gouv.vitam.worker.core.MarshallerObjectCache
Cache the Marshaller Object as its initialization takes about 40ms
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionjavax.xml.bind.Marshaller
getMarshaller
(Class<?> c) Cache of the marshaller object
-
Constructor Details
-
MarshallerObjectCache
public MarshallerObjectCache()Empty constructor
-
-
Method Details
-
getMarshaller
Cache of the marshaller object- Parameters:
c
- : class whom we want the JAXB Marshaller- Returns:
- The JAXB Marshaller for the class given in argument
- Throws:
javax.xml.bind.JAXBException
- if exception when creating new instance JAXBContext
-