Package org.glassfish.jersey.moxy.xml
Class MoxyXmlFeature
java.lang.Object
org.glassfish.jersey.moxy.xml.MoxyXmlFeature
- All Implemented Interfaces:
Feature
Feature used to register MOXy XML providers.
- Author:
- Pavel Bucek
-
Constructor Summary
ConstructorDescriptionDefault constructor creates standardJAXBContext
without any activated features and properties.MoxyXmlFeature
(Class<?>... classes) Constructor which allows MOXyJAXBContext
customization.MoxyXmlFeature
(Map<String, Object> properties, ClassLoader classLoader, boolean oxmMappingLookup, Class... classes) Constructor which allows MOXyJAXBContext
customization. -
Method Summary
-
Constructor Details
-
MoxyXmlFeature
public MoxyXmlFeature()Default constructor creates standardJAXBContext
without any activated features and properties. Current contextClassLoader
will be used. -
MoxyXmlFeature
Constructor which allows MOXyJAXBContext
customization.- Parameters:
classes
- additional classes used for creatingJAXBContext
.
-
MoxyXmlFeature
public MoxyXmlFeature(Map<String, Object> properties, ClassLoader classLoader, boolean oxmMappingLookup, Class... classes) Constructor which allows MOXyJAXBContext
customization.- Parameters:
properties
- properties to be passed toJAXBContextFactory.createContext(Class[], java.util.Map, ClassLoader)
. May benull
.classLoader
- will be used to load classes. Ifnull
, current contextClassLoader
will be used.oxmMappingLookup
- iftrue
, lookup for file with custom mappings will be performed.classes
- additional classes used for creatingJAXBContext
.
-
-
Method Details