Class ImageConfigResolver
- java.lang.Object
-
- io.fabric8.maven.docker.config.handler.ImageConfigResolver
-
- All Implemented Interfaces:
org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable
@Component(role=ImageConfigResolver.class, instantiationStrategy="singleton") public class ImageConfigResolver extends Object implements org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable
Manager holding all config handlers for external configuration- Since:
- 18/11/14
- Author:
- roland
-
-
Constructor Summary
Constructors Constructor Description ImageConfigResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinitialize()List<ImageConfiguration>resolve(ImageConfiguration unresolvedConfig, org.apache.maven.project.MavenProject project, org.apache.maven.execution.MavenSession session)Resolve an image configuration.voidsetLog(Logger log)
-
-
-
Method Detail
-
initialize
public void initialize() throws org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException- Specified by:
initializein interfaceorg.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable- Throws:
org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException
-
setLog
public void setLog(Logger log)
-
resolve
public List<ImageConfiguration> resolve(ImageConfiguration unresolvedConfig, org.apache.maven.project.MavenProject project, org.apache.maven.execution.MavenSession session)
Resolve an image configuration. If it contains a reference to an external configuration the corresponding resolver is called and the resolved image configurations are returned (can be multiple). If no reference to an external configuration is found, the original configuration is returned directly.- Parameters:
unresolvedConfig- the configuration to resolveproject- project used for resolvingsession-- Returns:
- list of resolved image configurations
- Throws:
IllegalArgumentException- if no type is given when an external reference configuration is provided or when the type is not known (i.e. no handler is registered for this type).
-
-