public abstract class BaseGenerator extends Object implements Generator
| Modifier and Type | Field and Description |
|---|---|
protected PrefixedLogger |
log |
| Constructor and Description |
|---|
BaseGenerator(MavenGeneratorContext context,
String name) |
BaseGenerator(MavenGeneratorContext context,
String name,
FromSelector fromSelector) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addLatestTagIfSnapshot(io.fabric8.maven.docker.config.BuildImageConfiguration.Builder buildBuilder) |
protected String |
getAlias()
Get alias name with the generator name as default
|
GeneratorConfig |
getConfig() |
protected String |
getConfig(Configs.Key key) |
protected String |
getConfig(Configs.Key key,
String defaultVal) |
MavenGeneratorContext |
getContext() |
protected String |
getFrom()
Get base image either from configuration or from a given selector
|
protected String |
getImageName()
Get Image name with a standard default
|
String |
getName() |
protected org.apache.maven.project.MavenProject |
getProject() |
protected boolean |
shouldAddDefaultImage(List<io.fabric8.maven.docker.config.ImageConfiguration> configs) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcustomize, isApplicableprotected final PrefixedLogger log
public BaseGenerator(MavenGeneratorContext context, String name)
public BaseGenerator(MavenGeneratorContext context, String name, FromSelector fromSelector)
protected org.apache.maven.project.MavenProject getProject()
public MavenGeneratorContext getContext()
public GeneratorConfig getConfig()
protected String getConfig(Configs.Key key)
protected String getConfig(Configs.Key key, String defaultVal)
protected String getFrom()
null when none could be detected.protected String getImageName()
protected String getAlias()
protected boolean shouldAddDefaultImage(List<io.fabric8.maven.docker.config.ImageConfiguration> configs)
protected void addLatestTagIfSnapshot(io.fabric8.maven.docker.config.BuildImageConfiguration.Builder buildBuilder)
Copyright © 2016. All rights reserved.