@Override protected Thread createFlowThread( String threadName ) { Thread flowThread = super.createFlowThread( threadName ); flowThread.setContextClassLoader( createClassPathClassloader( flowThread.getContextClassLoader() ) ); return flowThread; }
@Override @ProcessStart public synchronized void start() { if( thread != null ) return; if( stop ) return; registerShutdownHook(); internalStart(); String threadName = ( "flow " + Util.toNull( getName() ) ).trim(); thread = createFlowThread( threadName ); thread.start(); }