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
ConstructorsConstructorDescriptionJAXBContextWrapper(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.JAXBIntrospectorjakarta.xml.bind.Marshallerjakarta.xml.bind.Unmarshallerjakarta.xml.bind.ValidatorDeprecated.See jakarta.xml.bind.JAXBContext#createValidator().voidgenerateSchema(jakarta.xml.bind.SchemaOutputResolver outputResolver) Get the schema.voidSet 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
Get the schema.- Returns:
- the schema.
-
setSchema
Set the schema.- Parameters:
schema- The schema to set.
-
createBinder
- Overrides:
createBinderin classjakarta.xml.bind.JAXBContext- Returns:
Binder- See Also:
-
createBinder
- Overrides:
createBinderin classjakarta.xml.bind.JAXBContext- Type Parameters:
T- type- Parameters:
domType- dom class- Returns:
Binder- See Also:
-
createJAXBIntrospector
public jakarta.xml.bind.JAXBIntrospector createJAXBIntrospector()- Overrides:
createJAXBIntrospectorin classjakarta.xml.bind.JAXBContext- Returns:
JAXBIntrospector- See Also:
-
createMarshaller
public jakarta.xml.bind.Marshaller createMarshaller() throws jakarta.xml.bind.JAXBException- Specified by:
createMarshallerin 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:
createUnmarshallerin 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:
createValidatorin classjakarta.xml.bind.JAXBContext- Returns:
- xml validator
- Throws:
jakarta.xml.bind.JAXBException- jaxb exception- See Also:
-
generateSchema
- Overrides:
generateSchemain classjakarta.xml.bind.JAXBContext- Parameters:
outputResolver- xml schema resolver- Throws:
IOException- if I/O error occurred- See Also:
-