FileResultHandlerWrapper.java 1.03 KB
/*
 * Decompiled with CFR 0_118.
 * 
 * Could not load the following classes:
 *  com.adobe.aemfd.docmanager.Document
 */
package com.adobe.aemfd.watchfolder.job;

import com.adobe.aemfd.docmanager.Document;
import com.adobe.aemfd.watchfolder.config.WatchFolderConfiguration;
import com.adobe.aemfd.watchfolder.job.FileResultHandlerImpl;
import com.adobe.aemfd.watchfolder.util.DocUtil;
import java.io.File;
import java.util.Map;

/*
 * This class specifies class file version 49.0 but uses Java 6 signatures.  Assumed Java 6.
 */
public class FileResultHandlerWrapper
extends FileResultHandlerImpl {
    public FileResultHandlerWrapper(WatchFolderConfiguration config) {
        super(config);
    }

    /*
     * WARNING - Removed try catching itself - possible behaviour change.
     */
    @Override
    public void handleSuccess(Map<String, Document> response, File input, String jobId) {
        try {
            super.handleSuccess(response, input, jobId);
        }
        finally {
            DocUtil.disposeAll(response);
        }
    }
}