public class AsynchronousProcessing
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
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.
|
public static void findDependantsOfContainer(GenericClassContainer container, java.lang.String taskId, IProgressMonitor monitor, boolean findAll, IElementsProcessingResultHandler resultHandler)
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.public static void findDependantsOfPackage(ClassPackage aPackage, java.lang.String taskId, IProgressMonitor monitor, boolean findAll, IElementsProcessingResultHandler resultHandler)
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.public static void findDependantsOfClass(ClassInformation classInformation, java.lang.String taskId, IProgressMonitor monitor, boolean findAll, IElementsProcessingResultHandler resultHandler)
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.public static void findImplementorsOfInterface(ClassInformation interfaceClass, java.lang.String taskId, IProgressMonitor monitor, boolean directOnly, IElementsProcessingResultHandler resultHandler)
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.public static void findClassesInWorkset(java.lang.String type, Workset workset, IClassInformationProcessor<?> processor, IProgressMonitor monitor, IElementsProcessingResultHandler resultHandler)