JAXBContext
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final String | DEFAULT_FACTORY_CLASS
When JAXB is in J2SE, rt.jar has to have a JAXB implementation. |
| private static ServiceLoaderUtil. | |
| private static final Logger |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private static String | |
| pack-priv static JAXBContext | |
| pack-priv static JAXBContext | |
| private static ClassLoader | |
| private static ClassLoader | |
| private static ClassLoader | |
| private static String | |
| private static JAXBException | Returns: JAXBException to be thrown.The Class object of the type being cast originalType, Class<?> The Class object of the type that is being cast to targetType)Determine if two types (JAXBContext in this case) will generate a ClassCastException. |
| private static Throwable | handleInvocationTargetException(InvocationTargetException x)
If the |
| private static Object | |
| pack-priv static JAXBContext | newInstance(String contextPath, Class<?>[] contextPathClasses, String className, ClassLoader classLoader, Map<String, ?> properties)
Create an instance of a class using the specified ClassLoader |
| pack-priv static JAXBContext | newInstance(String contextPath, Class<?>[] contextPathClasses, Class<?> spFactory, ClassLoader classLoader, Map<String, ?> properties)
|
| private static JAXBContext | newInstance(Class<?>[] classes, Map<String, ?> properties, String className)
Create an instance of a class using the thread context ClassLoader |
| private static JAXBContext | newInstance(Class<?>[] classes, Map<String, ?> properties, String className, ClassLoader loader)
Create an instance of a class using passed in ClassLoader |
| pack-priv static JAXBContext | |
| pack-priv static URL | Returns: the URL for the class or null if it wasn't foundThe class to search for clazz, ClassLoader The ClassLoader to search. If this parameter is null, then the
system class loader will be searched loader)Search the given ClassLoader for an instance of the specified class and return a string representation of the URL that points to the resource. |
| pack-priv static URL |
| DEFAULT_FACTORY_CLASS | back to summary |
|---|---|
| pack-priv static final String DEFAULT_FACTORY_CLASS When JAXB is in J2SE, rt.jar has to have a JAXB implementation. However, rt.jar cannot have META-INF/services/jakarta.xml.bind.JAXBContext because if it has, it will take precedence over any file that applications have in their jar files. When the user bundles his own Jakarta XML Binding implementation, we'd like to use it, and we want the platform default to be used only when there's no other Jakarta XML Binding provider. For this reason, we have to hard-code the class name into the API. | |
| EXCEPTION_HANDLER | back to summary |
|---|---|
| private static ServiceLoaderUtil. | |
| logger | back to summary |
|---|---|
| private static final Logger logger | |
| ContextFinder | back to summary |
|---|---|
| pack-priv ContextFinder() | |
| classNameFromSystemProperties | back to summary |
|---|---|
| private static String classNameFromSystemProperties() throws JAXBException | |
| find | back to summary |
|---|---|
| pack-priv static JAXBContext find(String factoryId, String contextPath, ClassLoader classLoader, Map<String, ?> properties) throws JAXBException | |
| find | back to summary |
|---|---|
| pack-priv static JAXBContext find(Class<?>[] classes, Map<String, ?> properties) throws JAXBException | |
| getClassClassLoader | back to summary |
|---|---|
| private static ClassLoader getClassClassLoader(final Class<?> c) | |
| getContextClassLoader | back to summary |
|---|---|
| private static ClassLoader getContextClassLoader() | |
| getSystemClassLoader | back to summary |
|---|---|
| private static ClassLoader getSystemClassLoader() | |
| getSystemProperty | back to summary |
|---|---|
| private static String getSystemProperty(String property) | |
| handleClassCastException | back to summary |
|---|---|
| private static JAXBException handleClassCastException(Class<?> originalType, Class<?> targetType) Determine if two types (JAXBContext in this case) will generate a ClassCastException. For example, (targetType)originalType
| |
| handleInvocationTargetException | back to summary |
|---|---|
| private static Throwable handleInvocationTargetException(InvocationTargetException x) throws JAXBException If the | |
| instantiateProviderIfNecessary | back to summary |
|---|---|
| private static Object instantiateProviderIfNecessary(final Class<?> implClass) throws JAXBException | |
| newInstance | back to summary |
|---|---|
| pack-priv static JAXBContext newInstance(String contextPath, Class<?>[] contextPathClasses, String className, ClassLoader classLoader, Map<String, ?> properties) throws JAXBException Create an instance of a class using the specified ClassLoader | |
| newInstance | back to summary |
|---|---|
| pack-priv static JAXBContext newInstance(String contextPath, Class<?>[] contextPathClasses, Class<?> spFactory, ClassLoader classLoader, Map<String, ?> properties) throws JAXBException | |
| newInstance | back to summary |
|---|---|
| private static JAXBContext newInstance(Class<?>[] classes, Map<String, ?> properties, String className) throws JAXBException Create an instance of a class using the thread context ClassLoader | |
| newInstance | back to summary |
|---|---|
| private static JAXBContext newInstance(Class<?>[] classes, Map<String, ?> properties, String className, ClassLoader loader) throws JAXBException Create an instance of a class using passed in ClassLoader | |
| newInstance | back to summary |
|---|---|
| pack-priv static JAXBContext newInstance(Class<?>[] classes, Map<String, ?> properties, Class<?> spFactory) throws JAXBException | |
| which | back to summary |
|---|---|
| pack-priv static URL which(Class<?> clazz, ClassLoader loader) Search the given ClassLoader for an instance of the specified class and return a string representation of the URL that points to the resource.
| |
| which | back to summary |
|---|---|
| pack-priv static URL which(Class<?> clazz) Get the URL for the Class from it's ClassLoader.
Convenience method for | |