Class MarshallerObjectCache

java.lang.Object
fr.gouv.vitam.worker.core.MarshallerObjectCache

public class MarshallerObjectCache extends Object
Cache the Marshaller Object as its initialization takes about 40ms
  • Constructor Details

    • MarshallerObjectCache

      public MarshallerObjectCache()
      Empty constructor
  • Method Details

    • getMarshaller

      public javax.xml.bind.Marshaller getMarshaller(Class<?> c) throws javax.xml.bind.JAXBException
      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