Search in sources :

Example 1 with IPreprocessor

use of org.eclipse.scanning.api.scan.process.IPreprocessor in project gda-core by openGDA.

the class HeterogeneousScanServlet method preprocess.

private void preprocess(ScanBean scanBean) throws ProcessingException {
    // copied from ScanServlet
    ScanRequest req = scanBean.getScanRequest();
    if (req.isIgnorePreprocess()) {
        return;
    }
    for (IPreprocessor processor : Services.getPreprocessors()) {
        req = processor.preprocess(req);
    }
    scanBean.setScanRequest(req);
}
Also used : ScanRequest(org.eclipse.scanning.api.event.scan.ScanRequest) IPreprocessor(org.eclipse.scanning.api.scan.process.IPreprocessor)

Aggregations

ScanRequest (org.eclipse.scanning.api.event.scan.ScanRequest)1 IPreprocessor (org.eclipse.scanning.api.scan.process.IPreprocessor)1