setThreadList( new ArrayList<JDIThread>( 5 ) );
super.initialize();
}
protected JDIThread createThread(ThreadReference thread) {
JDIThread jdiThread = null;
try {
jdiThread = new DroolsThread( this,
thread );
} catch ( ObjectCollectedException exception ) {
// ObjectCollectionException can be thrown if the thread has already
// completed (exited) in the VM.
return null;
}
if ( isDisconnected() ) {
return null;
}
synchronized ( fThreads ) {
fThreads.add( jdiThread );
}
jdiThread.fireCreationEvent();
return jdiThread;
}