Class JAXBContextWrapper
java.lang.Object
jakarta.xml.bind.JAXBContext
org.jboss.resteasy.plugins.providers.jaxb.JAXBContextWrapper
public class JAXBContextWrapper
extends jakarta.xml.bind.JAXBContext
A wrapper class around a JAXBContext that enables additional features
to the RESTEasy JAXB-based providers.
- Version:
- $Revision:$
- Author:
- Ryan J. McDonough
-
Field Summary
Fields inherited from class jakarta.xml.bind.JAXBContext
JAXB_CONTEXT_FACTORY
-
Constructor Summary
ConstructorDescriptionJAXBContextWrapper
(jakarta.xml.bind.JAXBContext wrappedContext, JAXBConfig config) JAXBContextWrapper
(Class<?>[] classes, Map<String, Object> properties, JAXBConfig config) Create a new JAXBContextWrapper.JAXBContextWrapper
(String contextPath, JAXBConfig config) Create a new JAXBContextWrapper.JAXBContextWrapper
(JAXBConfig config, Class<?>... classes) Create a new JAXBContextWrapper. -
Method Summary
Modifier and TypeMethodDescriptionjakarta.xml.bind.Binder
<Node> <T> jakarta.xml.bind.Binder
<T> createBinder
(Class<T> domType) jakarta.xml.bind.JAXBIntrospector
jakarta.xml.bind.Marshaller
jakarta.xml.bind.Unmarshaller
jakarta.xml.bind.Validator
Deprecated.See jakarta.xml.bind.JAXBContext#createValidator().void
generateSchema
(jakarta.xml.bind.SchemaOutputResolver outputResolver) Get the schema.void
Set the schema.Methods inherited from class jakarta.xml.bind.JAXBContext
newInstance, newInstance, newInstance, newInstance, newInstance
-
Constructor Details
-
JAXBContextWrapper
public JAXBContextWrapper(jakarta.xml.bind.JAXBContext wrappedContext, JAXBConfig config) throws jakarta.xml.bind.JAXBException - Throws:
jakarta.xml.bind.JAXBException
-
JAXBContextWrapper
public JAXBContextWrapper(Class<?>[] classes, Map<String, Object> properties, JAXBConfig config) throws jakarta.xml.bind.JAXBExceptionCreate a new JAXBContextWrapper.- Parameters:
classes
- classesproperties
- properties mapconfig
- jaxb configuration- Throws:
jakarta.xml.bind.JAXBException
- jaxb exception
-
JAXBContextWrapper
public JAXBContextWrapper(String contextPath, JAXBConfig config) throws jakarta.xml.bind.JAXBException Create a new JAXBContextWrapper.- Parameters:
contextPath
- context pathconfig
- jaxb config- Throws:
jakarta.xml.bind.JAXBException
- jaxb exception
-
JAXBContextWrapper
public JAXBContextWrapper(JAXBConfig config, Class<?>... classes) throws jakarta.xml.bind.JAXBException Create a new JAXBContextWrapper.- Parameters:
config
- jaxb configclasses
- classes- Throws:
jakarta.xml.bind.JAXBException
- jaxb exception
-
-
Method Details
-
getSchema
-
setSchema
-
createBinder
- Overrides:
createBinder
in classjakarta.xml.bind.JAXBContext
- Returns:
Binder
- See Also:
-
createBinder
- Overrides:
createBinder
in classjakarta.xml.bind.JAXBContext
- Type Parameters:
T
- type- Parameters:
domType
- dom class- Returns:
Binder
- See Also:
-
createJAXBIntrospector
public jakarta.xml.bind.JAXBIntrospector createJAXBIntrospector()- Overrides:
createJAXBIntrospector
in classjakarta.xml.bind.JAXBContext
- Returns:
JAXBIntrospector
- See Also:
-
createMarshaller
public jakarta.xml.bind.Marshaller createMarshaller() throws jakarta.xml.bind.JAXBException- Specified by:
createMarshaller
in classjakarta.xml.bind.JAXBContext
- Returns:
- jaxb marshaller
- Throws:
jakarta.xml.bind.JAXBException
- jaxb exception- See Also:
-
createUnmarshaller
public jakarta.xml.bind.Unmarshaller createUnmarshaller() throws jakarta.xml.bind.JAXBException- Specified by:
createUnmarshaller
in classjakarta.xml.bind.JAXBContext
- Returns:
- jaxb unmarshaller
- Throws:
jakarta.xml.bind.JAXBException
- jaxb exception- See Also:
-
createValidator
public jakarta.xml.bind.Validator createValidator() throws jakarta.xml.bind.JAXBExceptionDeprecated.See jakarta.xml.bind.JAXBContext#createValidator().- Specified by:
createValidator
in classjakarta.xml.bind.JAXBContext
- Returns:
- xml validator
- Throws:
jakarta.xml.bind.JAXBException
- jaxb exception- See Also:
-
generateSchema
- Overrides:
generateSchema
in classjakarta.xml.bind.JAXBContext
- Parameters:
outputResolver
- xml schema resolver- Throws:
IOException
- if I/O error occurred- See Also:
-