JAXBContext
| Modifier and Type | Field and Description |
|---|---|
| private static ServiceLoaderUtil. | |
| private static final String | |
| private static final Logger | |
| private static final String | PLATFORM_DEFAULT_FACTORY_CLASS
When JAXB is in J2SE, rt.jar has to have a JAXB implementation. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private static String | classNameFromPackageProperties(URL packagePropertiesUrl, String... factoryIds)
first factoryId should be the preferred one, more of those can be provided to support backwards compatibility |
| private static String | |
| pack-priv static JAXBContext | |
| pack-priv static JAXBContext | |
| pack-priv static String | |
| private static ClassLoader | |
| private static ClassLoader | |
| private static String | |
| private static URL | Returns: resource url if foundclassloader to load resource with classLoader, String qualified name of the resource resourceName)If run on JPMS package containing resource must be open unconditionally. |
| private static URL | |
| private static ClassLoader | |
| private static String | |
| private static JAXBException | Returns: JAXBException to be thrown.The Class object of the type being cast originalType, Class<T> 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 | |
| private static String | |
| private static String | |
| private static Properties | |
| pack-priv static JAXBContext | newInstance(String contextPath, Class<T>[] contextPathClasses, String className, ClassLoader classLoader, Map<K, V> properties)
Create an instance of a class using the specified ClassLoader |
| pack-priv static JAXBContext | newInstance(String contextPath, Class<T>[] contextPathClasses, Class<T> spFactory, ClassLoader classLoader, Map<K, V> properties)
|
| pack-priv static JAXBContext | newInstance(Class<T>[] classes, Map<K, V> properties, String className)
Create an instance of a class using the thread context 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 |
| EXCEPTION_HANDLER | back to summary |
|---|---|
| private static ServiceLoaderUtil. | |
| JAXB_CONTEXT_FACTORY_DEPRECATED | back to summary |
|---|---|
| private static final String JAXB_CONTEXT_FACTORY_DEPRECATED | |
| logger | back to summary |
|---|---|
| private static final Logger logger | |
| PLATFORM_DEFAULT_FACTORY_CLASS | back to summary |
|---|---|
| private static final String PLATFORM_DEFAULT_FACTORY_CLASS When JAXB is in J2SE, rt.jar has to have a JAXB implementation. However, rt.jar cannot have META-INF/services/javax.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 JAXB implementation, we'd like to use it, and we want the platform default to be used only when there's no other JAXB provider. For this reason, we have to hard-code the class name into the API. | |
| ContextFinder | back to summary |
|---|---|
| pack-priv ContextFinder() | |
| classNameFromPackageProperties | back to summary |
|---|---|
| private static String classNameFromPackageProperties(URL packagePropertiesUrl, String... factoryIds) throws JAXBException first factoryId should be the preferred one, more of those can be provided to support backwards compatibility | |
| 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<K, V> properties) throws JAXBException | |
| find | back to summary |
|---|---|
| pack-priv static JAXBContext find(Class<?>[] classes, Map<String, ?> properties) throws JAXBException | |
| firstByServiceLoaderDeprecated | back to summary |
|---|---|
| pack-priv static String firstByServiceLoaderDeprecated(Class<T> spiClass, ClassLoader classLoader) throws JAXBException
Deprecated
| |
| getClassClassLoader | back to summary |
|---|---|
private static ClassLoader getClassClassLoader(final Class<T> c)
| |
| getContextClassLoader | back to summary |
|---|---|
private static ClassLoader getContextClassLoader()
| |
| getDeprecatedSystemProperty | back to summary |
|---|---|
| private static String getDeprecatedSystemProperty(String property) | |
| getResourceUrl | back to summary |
|---|---|
| private static URL getResourceUrl(ClassLoader classLoader, String resourceName) If run on JPMS package containing resource must be open unconditionally.
| |
| getResourceUrl | back to summary |
|---|---|
| private static URL getResourceUrl(Class<?> clazz, String resourceName) | |
| 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<T> originalType, Class<T> 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 | |
| jaxbProperties | back to summary |
|---|---|
| private static String jaxbProperties(String contextPath, ClassLoader classLoader, String factoryId) throws JAXBException | |
| jaxbProperties | back to summary |
|---|---|
| private static String jaxbProperties(Class<T>[] classesFromContextPath, String factoryId) throws JAXBException | |
| loadJAXBProperties | back to summary |
|---|---|
| private static Properties loadJAXBProperties(URL url) throws JAXBException | |
| newInstance | back to summary |
|---|---|
| pack-priv static JAXBContext newInstance(String contextPath, Class<T>[] contextPathClasses, String className, ClassLoader classLoader, Map<K, V> 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<T>[] contextPathClasses, Class<T> spFactory, ClassLoader classLoader, Map<K, V> properties) throws JAXBException | |
| newInstance | back to summary |
|---|---|
| pack-priv static JAXBContext newInstance(Class<T>[] classes, Map<K, V> properties, String className) throws JAXBException Create an instance of a class using the thread context ClassLoader | |
| newInstance | back to summary |
|---|---|
| pack-priv static JAXBContext newInstance(Class<T>[] classes, Map<K, V> properties, Class<T> spFactory) throws JAXBException | |
| which | back to summary |
|---|---|
| pack-priv static URL which(Class<T> 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<T> clazz) Get the URL for the Class from it's ClassLoader.
Convenience method for | |