org.apache.geronimo.mavenplugins.car
Class Maven2RepositoryAdapter

java.lang.Object
  extended by org.apache.geronimo.kernel.repository.AbstractRepository
      extended by org.apache.geronimo.kernel.repository.Maven2Repository
          extended by org.apache.geronimo.system.repository.Maven2Repository
              extended by org.apache.geronimo.mavenplugins.car.Maven2RepositoryAdapter
All Implemented Interfaces:
ListableRepository, Repository, WritableListableRepository, WriteableRepository

public class Maven2RepositoryAdapter
extends Maven2Repository

Helps adapt Geronimo repositories to Maven repositories for packaging building.


Nested Class Summary
static interface Maven2RepositoryAdapter.ArtifactLookup
           
 
Field Summary
static GBeanInfo GBEAN_INFO
           
 
Fields inherited from class org.apache.geronimo.kernel.repository.AbstractRepository
rootFile
 
Constructor Summary
Maven2RepositoryAdapter(org.codehaus.mojo.pluginsupport.dependency.DependencyTree dependencyTree, Maven2RepositoryAdapter.ArtifactLookup lookup)
           
 
Method Summary
static GBeanInfo getGBeanInfo()
           
 File getLocation(Artifact artifact)
          Gets the location on disk where the specified artifact is stored.
 SortedSet list()
          Gets a set (with entries of type Artifact) of all the items available in the repository.
 SortedSet list(Artifact query)
          Gets a set (with entries of type Artifact) of all the available items matching the specified artifact, which is normally not fully resolved (so the results all match whatever fields are specified on the argument Artifact).
protected  Artifact mavenToGeronimoArtifact(org.apache.maven.artifact.Artifact artifact)
           
 
Methods inherited from class org.apache.geronimo.kernel.repository.AbstractRepository
contains, copyToRepository, copyToRepository, getDependencies, setTypeHandler
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.geronimo.kernel.repository.WriteableRepository
copyToRepository, copyToRepository
 
Methods inherited from interface org.apache.geronimo.kernel.repository.Repository
contains, getDependencies
 
Methods inherited from interface org.apache.geronimo.kernel.repository.Repository
contains, getDependencies
 

Field Detail

GBEAN_INFO

public static final GBeanInfo GBEAN_INFO
Constructor Detail

Maven2RepositoryAdapter

public Maven2RepositoryAdapter(org.codehaus.mojo.pluginsupport.dependency.DependencyTree dependencyTree,
                               Maven2RepositoryAdapter.ArtifactLookup lookup)
Method Detail

getLocation

public File getLocation(Artifact artifact)
Description copied from interface: Repository
Gets the location on disk where the specified artifact is stored. The artifact must be fully resolved (isResolved() == true).

Specified by:
getLocation in interface Repository
Overrides:
getLocation in class Maven2Repository
Returns:
The location of the artifact, or null if it is not in this repository.

list

public SortedSet list()
Description copied from interface: ListableRepository
Gets a set (with entries of type Artifact) of all the items available in the repository.

Specified by:
list in interface ListableRepository
Overrides:
list in class Maven2Repository

list

public SortedSet list(Artifact query)
Description copied from interface: ListableRepository
Gets a set (with entries of type Artifact) of all the available items matching the specified artifact, which is normally not fully resolved (so the results all match whatever fields are specified on the argument Artifact).

Specified by:
list in interface ListableRepository
Overrides:
list in class Maven2Repository

mavenToGeronimoArtifact

protected Artifact mavenToGeronimoArtifact(org.apache.maven.artifact.Artifact artifact)

getGBeanInfo

public static GBeanInfo getGBeanInfo()


Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.