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 Object
An optional namespace mapper that is used to apply prefixes to elements with a given namespace.private static Constructor
private static final String
private Schema
The optional Schema that is bound to this contextprivate JAXBContext
Fields inherited from class javax.xml.bind.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().void
generateSchema
(SchemaOutputResolver outputResolver) Get the schema.private void
processConfig
(JAXBConfig config) FIXME Comment thisvoid
Set the schema.Methods inherited from class javax.xml.bind.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
Get the schema.- Returns:
- the schema.
-
setSchema
Set the schema.- Parameters:
schema
- The schema to set.
-
createBinder
- Overrides:
createBinder
in classJAXBContext
- Returns:
- See Also:
-
createBinder
- Overrides:
createBinder
in classJAXBContext
- Type Parameters:
T
-- Parameters:
domType
-- Returns:
- See Also:
-
createJAXBIntrospector
- Overrides:
createJAXBIntrospector
in classJAXBContext
- Returns:
- See Also:
-
createMarshaller
- Specified by:
createMarshaller
in classJAXBContext
- Returns:
- Throws:
JAXBException
- See Also:
-
createUnmarshaller
- Specified by:
createUnmarshaller
in classJAXBContext
- Returns:
- Throws:
JAXBException
- See Also:
-
createValidator
Deprecated.See javax.xml.bind.JAXBContext#createValidator().- Specified by:
createValidator
in classJAXBContext
- Returns:
- Throws:
JAXBException
- See Also:
-
generateSchema
- Overrides:
generateSchema
in classJAXBContext
- Parameters:
outputResolver
-- Throws:
IOException
- See Also:
-