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

import com.adobe.aemfd.docmanager.Document;
import com.adobe.aemfd.watchfolder.service.api.ProcessorContext;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;

/*
 * This class specifies class file version 49.0 but uses Java 6 signatures.  Assumed Java 6.
 */
public class ProcessorContextImpl
implements ProcessorContext {
    public String watchFolderId;
    public Map<String, Document> inputMap = new HashMap<String, Document>();
    public Map<String, Object> configParameters;
    public Map<String, Document> resultMap = new HashMap<String, Document>();

    @Override
    public String getWatchFolderId() {
        return this.watchFolderId;
    }

    @Override
    public Map<String, Document> getInputMap() {
        return this.inputMap == null ? null : Collections.unmodifiableMap(this.inputMap);
    }

    @Override
    public Map<String, Object> getConfigParameters() {
        return this.configParameters == null ? null : Collections.unmodifiableMap(this.configParameters);
    }

    @Override
    public void setResult(String fileName, Document contents) {
        this.resultMap.put(fileName, contents);
    }
}