dev.sixpack.generator.GeneratorController Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sdk Show documentation
Show all versions of sdk Show documentation
SDK to develop generators part of the Sixpack solution
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