public final class ContextClassLoaderInterceptor extends Object implements Interceptor, Serializable
Note that this interceptor is only serializable if the given class loader is serializable.
Constructor and Description |
---|
ContextClassLoaderInterceptor(ClassLoader classLoader)
Construct a new instance.
|
public ContextClassLoaderInterceptor(ClassLoader classLoader)
classLoader
- the class loader to usepublic Object processInvocation(InterceptorContext context) throws Exception
processInvocation
in interface Interceptor
context
- the interceptor contextException
- If the underlying invocation resulted in some exceptionCopyright © 2012 JBoss by Red Hat. All Rights Reserved.