Class 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 Detail

      • ImageConfigResolver

        public ImageConfigResolver()
    • Method Detail

      • initialize

        public void initialize()
                        throws org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException
        Specified by:
        initialize in interface org.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 resolve
        project - project used for resolving
        session -
        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).