Top Description Fields Constructors Methods
org.jboss.marshalling

public Class ContextClassResolver

extends AbstractClassResolver
Class Inheritance
Static Imports
java.lang.System.getSecurityManager, java.security.AccessController.doPrivileged

A class resolver which uses the context classloader to resolve classes.

Field Summary

Modifier and TypeField and Description
private static final PrivilegedAction<ClassLoader>
Inherited from org.jboss.marshalling.AbstractClassResolver:
enforceSerialVersionUid

Constructor Summary

AccessConstructor and Description
public
ContextClassResolver()

Construct a new instance.

public
ContextClassResolver(final boolean
true if an exception should be thrown on an incorrect serialVersionUID
enforceSerialVersionUid
)

Construct a new instance.

Method Summary

Modifier and TypeMethod and Description
protected ClassLoader
getClassLoader()

Implements abstract org.jboss.marshalling.AbstractClassResolver.getClassLoader.

Get the classloader to use to resolve classes for this resolver.
Inherited from org.jboss.marshalling.AbstractClassResolver:
annotateClassannotateProxyClassgetClassNamegetProxyInterfacesloadClassresolveClassresolveProxyClass

Field Detail

GET_TCCL_ACTIONback to summary
private static final PrivilegedAction<ClassLoader> GET_TCCL_ACTION

Constructor Detail

ContextClassResolverback to summary
public ContextClassResolver()

Construct a new instance.

ContextClassResolverback to summary
public ContextClassResolver(final boolean enforceSerialVersionUid)

Construct a new instance.

Parameters
enforceSerialVersionUid:boolean

true if an exception should be thrown on an incorrect serialVersionUID

Method Detail

getClassLoaderback to summary
protected ClassLoader getClassLoader()

Implements abstract org.jboss.marshalling.AbstractClassResolver.getClassLoader.

Doc from org.jboss.marshalling.AbstractClassResolver.getClassLoader.

Get the classloader to use to resolve classes for this resolver.

Returns:ClassLoader

the classloader