Top Description Inners Fields Constructors Methods
com.ibm.icu.impl

public Class ClassLoaderUtil

extends Object
Class Inheritance
Imports
java.security.AccessController, .PrivilegedAction

This utility class is used for resolving a right ClassLoader from a given class. getClassLoader always returns a non-null ClassLoader even a class is loaded through the bootstrap class loader of JRE.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
private static volatile ClassLoader

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private static ClassLoader

Returns:

The BootStrapClassLoader singleton instance
getBootstrapClassLoader
()

Lazily create a singleton BootstrapClassLoader.

public static ClassLoader

Returns:

the class loader
getClassLoader
(Class<?>
The class
cls
)

Returns the class loader used for loading the specified class.

public static ClassLoader

Returns:

A class loader
getClassLoader
()

Returns a fallback class loader.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

BOOTSTRAP_CLASSLOADERback to summary
private static volatile ClassLoader BOOTSTRAP_CLASSLOADER

Constructor Detail

ClassLoaderUtilback to summary
public ClassLoaderUtil()

Method Detail

getBootstrapClassLoaderback to summary
private static ClassLoader getBootstrapClassLoader()

Lazily create a singleton BootstrapClassLoader. This class loader might be necessary when ICU4J classes are initialized by bootstrap class loader.

Returns:ClassLoader

The BootStrapClassLoader singleton instance

getClassLoaderback to summary
public static ClassLoader getClassLoader(Class<?> cls)

Returns the class loader used for loading the specified class.

Parameters
cls:Class<?>

The class

Returns:ClassLoader

the class loader

getClassLoaderback to summary
public static ClassLoader getClassLoader()

Returns a fallback class loader.

Returns:ClassLoader

A class loader

com.ibm.icu.impl back to summary

private Class ClassLoaderUtil.BootstrapClassLoader

extends ClassLoader
Class Inheritance

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Inherited from java.lang.ClassLoader:
clearAssertionStatusdefineClassdefineClassdefineClassdefineClassdefinePackagefindClassfindClassfindLibraryfindLoadedClassfindResourcefindResourcefindResourcesfindSystemClassgetClassLoadingLockgetDefinedPackagegetDefinedPackagesgetNamegetPackagegetPackagesgetParentgetPlatformClassLoadergetResourcegetResourceAsStreamgetResourcesgetSystemClassLoadergetSystemResourcegetSystemResourceAsStreamgetSystemResourcesgetUnnamedModuleisRegisteredAsParallelCapableloadClassloadClassregisterAsParallelCapableresolveClassresourcessetClassAssertionStatussetDefaultAssertionStatussetPackageAssertionStatussetSigners

Constructor Detail

BootstrapClassLoaderback to summary
pack-priv BootstrapClassLoader()