Top Description Constructors Methods
org.glassfish.jaxb.runtime.v2

public Class JAXBContextFactory

extends Object
implements JAXBContextFactory
Class Inheritance
All Implemented Interfaces
jakarta.xml.bind.JAXBContextFactory
Imports
jakarta.xml.bind.JAXBContext, .JAXBException, java.util.Map

Creates JAXB context. Context factory supporting JavaSE service loading facilities. Redirects to ContextFactory, which is not removed due to compatibility reasons.

Constructor Summary

AccessConstructor and Description
public
JAXBContextFactory()

Default constructor.

Method Summary

Modifier and TypeMethod and Description
public JAXBContext

Returns:

JAXB context.
createContext
(Class<?>[]
JAXB classes accessed by runtime.
classesToBeBound
,
Map<String, ?>
JAXB properties passed to runtime.
properties
)

Implements jakarta.xml.bind.JAXBContextFactory.createContext.

Creates JAXB context.

public JAXBContext

Returns:

JAXB context.
createContext
(String
path to scan for JAXB classes accessed by runtime.
contextPath
,
ClassLoader
class loader to use.
classLoader
,
Map<String, ?>
JAXB properties.
properties
)

Implements jakarta.xml.bind.JAXBContextFactory.createContext.

Creates JAXB context.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

JAXBContextFactoryback to summary
public JAXBContextFactory()

Default constructor.

Method Detail

createContextback to summary
public JAXBContext createContext(Class<?>[] classesToBeBound, Map<String, ?> properties) throws JAXBException

Implements jakarta.xml.bind.JAXBContextFactory.createContext.

Creates JAXB context.

Parameters
classesToBeBound:Class<?>[]

JAXB classes accessed by runtime.

properties:Map<String, ?>

JAXB properties passed to runtime.

Returns:JAXBContext

JAXB context.

Annotations
@Override
@SuppressWarnings:unchecked
Exceptions
JAXBException:
on any error.
createContextback to summary
public JAXBContext createContext(String contextPath, ClassLoader classLoader, Map<String, ?> properties) throws JAXBException

Implements jakarta.xml.bind.JAXBContextFactory.createContext.

Creates JAXB context.

Parameters
contextPath:String

path to scan for JAXB classes accessed by runtime.

classLoader:ClassLoader

class loader to use.

properties:Map<String, ?>

JAXB properties.

Returns:JAXBContext

JAXB context.

Annotations
@Override
@SuppressWarnings:unchecked
Exceptions
JAXBException:
on any error.