org.pf.tools.cda.core.processing
Class AsynchronousProcessing

java.lang.Object
  extended by org.pf.tools.cda.core.processing.AsynchronousProcessing

public class AsynchronousProcessing
extends java.lang.Object

This class provides static methods to launch threads for asynchronous processing of various analyzer tasks.

Version:
1.0
Author:
M.Duchrow

Method Summary
static void findClassesInWorkset(java.lang.String type, Workset workset, IClassInformationProcessor processor, IProgressMonitor monitor, IElementsProcessingResultHandler resultHandler)
           
static void findDependantsOfClass(ClassInformation classInformation, java.lang.String taskId, IProgressMonitor monitor, boolean findAll, IElementsProcessingResultHandler resultHandler)
          Starts a separate thread that collects dependants of the given class.
static void findDependantsOfContainer(GenericClassContainer container, java.lang.String taskId, IProgressMonitor monitor, boolean findAll, IElementsProcessingResultHandler resultHandler)
          Starts a separate thread that collects dependants of the given container.
static void findDependantsOfPackage(ClassPackage aPackage, java.lang.String taskId, IProgressMonitor monitor, boolean findAll, IElementsProcessingResultHandler resultHandler)
          Starts a separate thread that collects dependants of the given package.
static void findImplementorsOfInterface(ClassInformation interfaceClass, java.lang.String taskId, IProgressMonitor monitor, boolean directOnly, IElementsProcessingResultHandler resultHandler)
          Starts a separate thread that collects implementors of the given interface.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

findDependantsOfContainer

public static void findDependantsOfContainer(GenericClassContainer container,
                                             java.lang.String taskId,
                                             IProgressMonitor monitor,
                                             boolean findAll,
                                             IElementsProcessingResultHandler resultHandler)
Starts a separate thread that collects dependants of the given container. The result (found containers) will be sent to the given resultHandler.

Parameters:
container - The container for which to collect the dependant containers.
taskId - A unique identifier that allows the result handler to associate the result to the initiator.
monitor - An optional monitor that will be called during processing to allow display current progress (may be null).
findAll - Specifies whether all dependants (recursively) or only direct dependants should be collected.
resultHandler - The result handler that will be invoked at the end of processing with the collected containers.

findDependantsOfPackage

public static void findDependantsOfPackage(ClassPackage aPackage,
                                           java.lang.String taskId,
                                           IProgressMonitor monitor,
                                           boolean findAll,
                                           IElementsProcessingResultHandler resultHandler)
Starts a separate thread that collects dependants of the given package. The result (found packages) will be sent to the given resultHandler.

Parameters:
aPackage - The package for which to collect the dependant packages.
taskId - A unique identifier that allows the result handler to associate the result to the initiator.
monitor - An optional monitor that will be called during processing to allow display current progress (may be null).
findAll - Specifies whether all dependants (recursively) or only direct dependants should be collected.
resultHandler - The result handler that will be invoked at the end of processing with the collected packages.

findDependantsOfClass

public static void findDependantsOfClass(ClassInformation classInformation,
                                         java.lang.String taskId,
                                         IProgressMonitor monitor,
                                         boolean findAll,
                                         IElementsProcessingResultHandler resultHandler)
Starts a separate thread that collects dependants of the given class. The result (found classes) will be sent to the given resultHandler.

Parameters:
classInformation - The class for which to collect the dependant classes.
taskId - A unique identifier that allows the result handler to associate the result to the initiator.
monitor - An optional monitor that will be called during processing to allow display current progress (may be null).
findAll - Specifies whether all dependants (recursively) or only direct dependants should be collected.
resultHandler - The result handler that will be invoked at the end of processing with the collected classes.

findImplementorsOfInterface

public static void findImplementorsOfInterface(ClassInformation interfaceClass,
                                               java.lang.String taskId,
                                               IProgressMonitor monitor,
                                               boolean directOnly,
                                               IElementsProcessingResultHandler resultHandler)
Starts a separate thread that collects implementors of the given interface. The result (found classes) will be sent to the given resultHandler.

Parameters:
interfaceClass - The interface for which to lookup the implementors.
taskId - A unique identifier that allows the result handler to associate the result to the initiator.
monitor - An optional monitor that will be called during processing to allow display current progress (may be null).
directOnly - Specifies whether only direct implementors all implementors (including all subclasses of direct implementors) should be collected.
resultHandler - The result handler that will be invoked at the end of processing with the collected classes.

findClassesInWorkset

public static void findClassesInWorkset(java.lang.String type,
                                        Workset workset,
                                        IClassInformationProcessor processor,
                                        IProgressMonitor monitor,
                                        IElementsProcessingResultHandler resultHandler)