org.camunda.bpm.engine.impl.context
Class ProcessApplicationClassloaderInterceptor<T>

java.lang.Object
  extended by org.camunda.bpm.engine.impl.context.ProcessApplicationClassloaderInterceptor<T>
All Implemented Interfaces:
Callable<T>

public class ProcessApplicationClassloaderInterceptor<T>
extends Object
implements Callable<T>

Wrapps the user-provided Callable and records the Thread Context Classloader after the context switch has been performed. This allows detecting if the Thread Context has been manipulated by the container after that (Usually due to cross application EJB invocations).

Author:
Daniel Meyer

Field Summary
protected  Callable<T> delegate
           
 
Constructor Summary
ProcessApplicationClassloaderInterceptor(Callable<T> delegate)
           
 
Method Summary
 T call()
           
static ClassLoader getProcessApplicationClassLoader()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

delegate

protected Callable<T> delegate
Constructor Detail

ProcessApplicationClassloaderInterceptor

public ProcessApplicationClassloaderInterceptor(Callable<T> delegate)
Method Detail

call

public T call()
       throws Exception
Specified by:
call in interface Callable<T>
Throws:
Exception

getProcessApplicationClassLoader

public static ClassLoader getProcessApplicationClassLoader()


Copyright © 2017 camunda services GmbH. All rights reserved.