Class JAXBSerialiserFactory

java.lang.Object
com.peterphi.std.util.jaxb.JAXBSerialiserFactory

public class JAXBSerialiserFactory extends Object
A factory for JAXBSerialiser instances that can optionally be forced to use EclipseLink MOXy (or use the default JAXBContext implementation acquisition rules).
Caches JAXBSerialiser instances created using either SoftReferences or direct hard references (based on config - defaults to soft references)
  • Constructor Details

    • JAXBSerialiserFactory

      public JAXBSerialiserFactory(boolean useMoxy)
    • JAXBSerialiserFactory

      public JAXBSerialiserFactory(boolean useMoxy, boolean useSoftReferences)
  • Method Details