Class GalleyInfrastructure

  • All Implemented Interfaces:
    ExtensionInfrastructure

    @Named("galley")
    @Singleton
    public class GalleyInfrastructure
    extends Object
    implements ExtensionInfrastructure
    Manager component responsible for setting up and managing the Galley API instances used to resolve POMs and metadata.
    • Constructor Detail

      • GalleyInfrastructure

        @Inject
        public GalleyInfrastructure​(org.commonjava.maven.ext.common.session.MavenSessionHandler session,
                                    MirrorSelector mirrorSelector)
    • Method Detail

      • getCacheDir

        public File getCacheDir()
      • init

        public GalleyInfrastructure init​(File targetDirectory)
                                  throws org.commonjava.maven.ext.common.ManipulationException
        Allow for a 'shell' infrastructure with majority not implemented but just the cache directory for FileIO. This is useful for both tests and usage of FileIO within GME.
        Specified by:
        init in interface ExtensionInfrastructure
        Parameters:
        targetDirectory - the directory to create the cache in
        Returns:
        this instance
        Throws:
        org.commonjava.maven.ext.common.ManipulationException - if an error occurs.