org.pf.tools.cda.core.processing
Interface IElementsProcessingResultHandler

All Known Implementing Classes:
WaitingIElementsProcessingResultHandler

public interface IElementsProcessingResultHandler

Specifies the callback methods to be used to notify the end of a search task (i.e. search-thread).

Version:
1.2
Author:
M.Duchrow

Method Summary
 void handleElementsProcessingCancellation(java.lang.String type, IAnalyzableElement startElement)
          This method will be called by ClassesProcessingTask if the search was cancelled during its processing.
 void handleElementsProcessingResult(java.lang.String type, IAnalyzableElement startElement, ProcessingResult result)
          This method will be called by ClassesProcessingTask after successfully completed the processing.
 

Method Detail

handleElementsProcessingResult

void handleElementsProcessingResult(java.lang.String type,
                                    IAnalyzableElement startElement,
                                    ProcessingResult result)
This method will be called by ClassesProcessingTask after successfully completed the processing.

Parameters:
type - Specifies the type of processing
startElement - The element on which the processing was started (must not be null).
result - The collection containing all found elements (must not be null).

handleElementsProcessingCancellation

void handleElementsProcessingCancellation(java.lang.String type,
                                          IAnalyzableElement startElement)
This method will be called by ClassesProcessingTask if the search was cancelled during its processing. It allows the implementor to restore a proper state if necessary.

Parameters:
type - Specifies the type of processing
startElement - The element on which the processing was started