Top Description Inners Fields Constructors Methods
com.thoughtworks.xstream.core.util

public Class ClassLoaderReference

extends ClassLoader
Class Inheritance

Deprecated

As of 1.4.5 use com.thoughtworks.xstream.core.ClassLoaderReference instead

ClassLoader that refers to another ClassLoader, allowing a single instance to be passed around the codebase that can later have its destination changed.
Authors
Joe Walnes, Jörg Schaible
Since
1.1.1

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class

Field Summary

Modifier and TypeField and Description
private transient ClassLoader

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public ClassLoader
public Class<T>
loadClass(String
The binary name of the class
name
)

Overrides java.lang.ClassLoader.loadClass.

Deprecated As of 1.4.5 use com.thoughtworks.xstream.core.ClassLoaderReference#getReference() .loadClass(String) instead
Loads the class with the specified binary name.
public void
private Object
Inherited from java.lang.ClassLoader:
clearAssertionStatusdefineClassdefineClassdefineClassdefineClassdefinePackagefindClassfindClassfindLibraryfindLoadedClassfindResourcefindResourcefindResourcesfindSystemClassgetClassLoadingLockgetDefinedPackagegetDefinedPackagesgetNamegetPackagegetPackagesgetParentgetPlatformClassLoadergetResourcegetResourceAsStreamgetResourcesgetSystemClassLoadergetSystemResourcegetSystemResourceAsStreamgetSystemResourcesgetUnnamedModuleisRegisteredAsParallelCapableloadClassregisterAsParallelCapableresolveClassresourcessetClassAssertionStatussetDefaultAssertionStatussetPackageAssertionStatussetSigners

Field Detail

referenceback to summary
private transient ClassLoader reference

Constructor Detail

ClassLoaderReferenceback to summary
public ClassLoaderReference(ClassLoader reference)

Method Detail

getReferenceback to summary
public ClassLoader getReference()
loadClassback to summary
public Class<T> loadClass(String name) throws ClassNotFoundException

Overrides java.lang.ClassLoader.loadClass.

Doc from java.lang.ClassLoader.loadClass.

Deprecated

As of 1.4.5 use com.thoughtworks.xstream.core.ClassLoaderReference#getReference() .loadClass(String) instead

Loads the class with the specified binary name. This method searches for classes in the same manner as the loadClass(String, boolean) method. It is invoked by the Java virtual machine to resolve class references. Invoking this method is equivalent to invoking loadClass(name, false).

Parameters
name:String

The binary name of the class

Returns:Class<T>

The resulting Class object

Exceptions
ClassNotFoundException:
If the class was not found
setReferenceback to summary
public void setReference(ClassLoader reference)
writeReplaceback to summary
private Object writeReplace()
com.thoughtworks.xstream.core.util back to summary

pack-priv Class ClassLoaderReference.Replacement

extends Object
Class Inheritance
  • java.lang.Object
  • com.thoughtworks.xstream.core.util.ClassLoaderReference.Replacement

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
private Object
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

Replacementback to summary
pack-priv Replacement()

Method Detail

readResolveback to summary
private Object readResolve()