Class JAXBContextWrapper
java.lang.Object
javax.xml.bind.JAXBContext
org.jboss.resteasy.plugins.providers.jaxb.JAXBContextWrapper
A wrapper class around a JAXBContext that enables additional features
to the RESTEasy JAXB-based providers.
- Version:
- $Revision:$
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ObjectAn optional namespace mapper that is used to apply prefixes to elements with a given namespace.private static Constructorprivate static final Stringprivate SchemaThe optional Schema that is bound to this contextprivate JAXBContextFields inherited from class JAXBContext
JAXB_CONTEXT_FACTORY -
Constructor Summary
ConstructorsConstructorDescriptionJAXBContextWrapper(Class<?>[] classes, Map<String, Object> properties, JAXBConfig config) Create a new JAXBContextWrapper.JAXBContextWrapper(String contextPath, JAXBConfig config) Create a new JAXBContextWrapper.JAXBContextWrapper(JAXBContext wrappedContext, JAXBConfig config) JAXBContextWrapper(JAXBConfig config, Class<?>... classes) Create a new JAXBContextWrapper. -
Method Summary
Modifier and TypeMethodDescription<T> Binder<T> createBinder(Class<T> domType) Deprecated.See javax.xml.bind.JAXBContext#createValidator().voidgenerateSchema(SchemaOutputResolver outputResolver) Get the schema.private voidprocessConfig(JAXBConfig config) FIXME Comment thisvoidSet the schema.Methods inherited from class JAXBContext
newInstance, newInstance, newInstance, newInstance, newInstance
-
Field Details
-
NAMESPACE_PREFIX_MAPPER
- See Also:
-
mapperConstructor
-
wrappedContext
-
mapper
An optional namespace mapper that is used to apply prefixes to elements with a given namespace. -
schema
The optional Schema that is bound to this context
-
-
Constructor Details
-
JAXBContextWrapper
- Throws:
JAXBException
-
JAXBContextWrapper
public JAXBContextWrapper(Class<?>[] classes, Map<String, Object> properties, JAXBConfig config) throws JAXBExceptionCreate a new JAXBContextWrapper.- Parameters:
classes-properties-config-- Throws:
JAXBException
-
JAXBContextWrapper
Create a new JAXBContextWrapper.- Parameters:
contextPath-config-- Throws:
JAXBException
-
JAXBContextWrapper
Create a new JAXBContextWrapper.- Parameters:
config-classes-- Throws:
JAXBException
-
-
Method Details
-
processConfig
FIXME Comment this- Parameters:
config-- Throws:
JAXBException
-
getSchema
-
setSchema
-
createBinder
- Overrides:
createBinderin classJAXBContext- Returns:
- See Also:
-
createBinder
- Overrides:
createBinderin classJAXBContext- Type Parameters:
T-- Parameters:
domType-- Returns:
- See Also:
-
createJAXBIntrospector
- Overrides:
createJAXBIntrospectorin classJAXBContext- Returns:
- See Also:
-
createMarshaller
- Specified by:
createMarshallerin classJAXBContext- Returns:
- Throws:
JAXBException- See Also:
-
createUnmarshaller
- Specified by:
createUnmarshallerin classJAXBContext- Returns:
- Throws:
JAXBException- See Also:
-
createValidator
Deprecated.See javax.xml.bind.JAXBContext#createValidator().- Specified by:
createValidatorin classJAXBContext- Returns:
- Throws:
JAXBException- See Also:
-
generateSchema
- Overrides:
generateSchemain classJAXBContext- Parameters:
outputResolver-- Throws:
IOException- See Also:
-