/*
 * This file is part of the DITA Open Toolkit project.
 *
 * Copyright 2004, 2005 IBM Corporation
 *
 * See the accompanying LICENSE file for applicable license.

 */
package org.dita.dost.module;

import org.dita.dost.exception.DITAOTException;
import org.dita.dost.log.DITAOTLogger;
import org.dita.dost.pipeline.AbstractPipelineInput;
import org.dita.dost.pipeline.AbstractPipelineOutput;
import org.dita.dost.util.Job;
import org.dita.dost.util.Job.FileInfo;

import java.util.List;
import java.util.function.Predicate;

/**
 * Abstract class for Modules which contains the method that every module class
 * should implement.
 *
 * @author Lian, Li
 */
public interface AbstractPipelineModule {

    /**
     * Start the process of this module with the input.
     *
     * <p>{@link #setLogger(DITAOTLogger)} must be called before calling this method.</p>
     *
     * @param input input
     * @return output
     * @throws DITAOTException DITAOTException
     */
    AbstractPipelineOutput execute(AbstractPipelineInput input)
            throws DITAOTException;

    /**
     * Set logger for module.
     *
     * @param logger logger to use for log message
     */
    void setLogger(DITAOTLogger logger);

    void setJob(Job job);

    void setFileInfoFilter(Predicate<FileInfo> fileInfoFilter);

    void setProcessingPipe(List<XmlFilterModule.FilterPair> pipe);

}

@@ -1302,32 +1302,40 @@
 foFilter);%0A%0A    
+default 
 void setProcessi
@@ -1379,13 +1379,20 @@
 r%3E pipe)
-;
+ %7B%0A    %7D
 %0A%0A%7D%0A

Use default method to setProcessingPipe for backwards compatibility