Class GalleyInfrastructure
- java.lang.Object
-
- org.commonjava.maven.ext.io.resolver.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 Summary
Constructors Constructor Description GalleyInfrastructure(org.commonjava.maven.ext.common.session.MavenSessionHandler session, MirrorSelector mirrorSelector)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
finish()
ArtifactManager
getArtifactManager()
File
getCacheDir()
MavenMetadataReader
getMetadataReader()
MavenPomReader
getPomReader()
XMLInfrastructure
getXml()
XPathManager
getXPath()
GalleyInfrastructure
init()
GalleyInfrastructure
init(File targetDirectory)
Allow for a 'shell' infrastructure with majority not implemented but just the cache directory for FileIO.GalleyInfrastructure
init(Location customLocation, Transport customTransport, File cacheDir)
-
-
-
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() throws org.commonjava.maven.ext.common.ManipulationException
- Specified by:
init
in interfaceExtensionInfrastructure
- Throws:
org.commonjava.maven.ext.common.ManipulationException
-
init
public GalleyInfrastructure init(Location customLocation, Transport customTransport, File cacheDir) throws org.commonjava.maven.ext.common.ManipulationException
- Specified by:
init
in interfaceExtensionInfrastructure
- Throws:
org.commonjava.maven.ext.common.ManipulationException
-
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 interfaceExtensionInfrastructure
- Parameters:
targetDirectory
- the directory to create the cache in- Returns:
- this instance
- Throws:
org.commonjava.maven.ext.common.ManipulationException
- if an error occurs.
-
getPomReader
public MavenPomReader getPomReader()
-
getXml
public XMLInfrastructure getXml()
-
getMetadataReader
public MavenMetadataReader getMetadataReader()
-
getArtifactManager
public ArtifactManager getArtifactManager()
-
getXPath
public XPathManager getXPath()
-
finish
public void finish()
- Specified by:
finish
in interfaceExtensionInfrastructure
-
-