Class ContextClassLoaderInterceptor

    • Constructor Detail

      • ContextClassLoaderInterceptor

        public ContextClassLoaderInterceptor​(ClassLoader classLoader)
        Construct a new instance.
        Parameters:
        classLoader - the class loader to use
    • Method Detail

      • processInvocation

        public Object processInvocation​(InterceptorContext context)
                                 throws Exception
        Process an invocation. The invocation can be handled directly, or passed on to the next processor in the chain.
        Specified by:
        processInvocation in interface Interceptor
        Parameters:
        context - the interceptor context
        Returns:
        the result of the invocation
        Throws:
        Exception - If the underlying invocation resulted in some exception