Class MoxyXmlFeature

  • All Implemented Interfaces:
    jakarta.ws.rs.core.Feature

    public class MoxyXmlFeature
    extends Object
    implements jakarta.ws.rs.core.Feature
    Feature used to register MOXy XML providers.
    Author:
    Pavel Bucek
    • Constructor Detail

      • MoxyXmlFeature

        public MoxyXmlFeature()
        Default constructor creates standard JAXBContext without any activated features and properties. Current context ClassLoader will be used.
      • MoxyXmlFeature

        public MoxyXmlFeature​(Class<?>... classes)
        Constructor which allows MOXy JAXBContext customization.
        Parameters:
        classes - additional classes used for creating JAXBContext.
      • MoxyXmlFeature

        public MoxyXmlFeature​(Map<String,​Object> properties,
                              ClassLoader classLoader,
                              boolean oxmMappingLookup,
                              Class... classes)
        Constructor which allows MOXy JAXBContext customization.
        Parameters:
        properties - properties to be passed to JAXBContextFactory.createContext(Class[], java.util.Map, ClassLoader). May be null.
        classLoader - will be used to load classes. If null, current context ClassLoader will be used.
        oxmMappingLookup - if true, lookup for file with custom mappings will be performed.
        classes - additional classes used for creating JAXBContext.
    • Method Detail

      • configure

        public boolean configure​(jakarta.ws.rs.core.FeatureContext context)
        Specified by:
        configure in interface jakarta.ws.rs.core.Feature