io.automatiko.engine.quarkus.deployment.AutomatikoBuildData Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of automatiko-common-deployment Show documentation
Show all versions of automatiko-common-deployment Show documentation
Common Deployment module for Quarkus Extension for Automatiko Engine
The newest version!
package io.automatiko.engine.quarkus.deployment;
import io.automatiko.engine.codegen.GeneratorContext;
import io.automatiko.engine.quarkus.AutomatikoBuildTimeConfig;
public class AutomatikoBuildData {
private static AutomatikoBuildData INSTANCE;
protected AutomatikoBuildTimeConfig config;
protected GeneratorContext generationContext;
private AutomatikoBuildData(AutomatikoBuildTimeConfig config, GeneratorContext generationContext) {
this.config = config;
this.generationContext = generationContext;
}
public static AutomatikoBuildData create(AutomatikoBuildTimeConfig config, GeneratorContext generationContext) {
if (INSTANCE == null) {
INSTANCE = new AutomatikoBuildData(config, generationContext);
}
return INSTANCE;
}
public static AutomatikoBuildData get() {
if (INSTANCE == null) {
throw new IllegalStateException("AutomatikBuildData was not yet created");
}
return INSTANCE;
}
public AutomatikoBuildTimeConfig getConfig() {
return config;
}
public GeneratorContext getGenerationContext() {
return generationContext;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy