org.pf.tools.cda.core.dependency.analyzer
Class DependencyAnalyzerThread

java.lang.Object
  extended by java.lang.Thread
      extended by org.pf.tools.cda.core.dependency.analyzer.DependencyAnalyzerThread
All Implemented Interfaces:
java.lang.Runnable

public class DependencyAnalyzerThread
extends java.lang.Thread

This is a thread that executes the dependency analysis with a given analyzer and informs a given IAnalysisResultHandler when finished.

Version:
2.1
Author:
M.Duchrow

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
DependencyAnalyzerThread(MonitoredDependencyAnalyzer dependencyAnalyzer, IAnalysisResultHandler handler)
          Initialize the new instance with the analyzer and a handler that gets informed at the end of the analysis.
 
Method Summary
 void addResultHandler(IAnalysisResultHandler resultHandler)
          Add the given result handler in order to let it be notified when analysis is finished.
 void run()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DependencyAnalyzerThread

public DependencyAnalyzerThread(MonitoredDependencyAnalyzer dependencyAnalyzer,
                                IAnalysisResultHandler handler)
Initialize the new instance with the analyzer and a handler that gets informed at the end of the analysis.

Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

addResultHandler

public void addResultHandler(IAnalysisResultHandler resultHandler)
Add the given result handler in order to let it be notified when analysis is finished.