All Downloads are FREE. Search and download functionalities are using the official Maven repository.

dev.sixpack.generator.GeneratorController Maven / Gradle / Ivy

The newest version!
package dev.sixpack.generator;

import dev.sixpack.api.data.Request;
import dev.sixpack.api.data.Result;
import dev.sixpack.api.rpc.GeneratorA;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class GeneratorController implements GeneratorA {
    protected final Logger LOGGER;

    private final FactoryRecord factoryRecord;

    public GeneratorController(FactoryRecord factoryRecord) {
        this.factoryRecord = factoryRecord;
        LOGGER = LoggerFactory.getLogger(factoryRecord.getItem() + "Factory");
    }

    @Override
    public Result generate(Request request) {
        return FactoryController.generate(request, LOGGER, factoryRecord);
    }

    @Override
    public Result configure(Request request) {
        return null; // TODO implement
    }

    @Override
    public Result cleanup(Request request) {
        return null; // TODO implement
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy