org.eclipse.gemini.blueprint.test.provisioning.internal
Class LocalFileSystemMavenRepository

java.lang.Object
  extended by org.eclipse.gemini.blueprint.test.provisioning.internal.LocalFileSystemMavenRepository
All Implemented Interfaces:
ArtifactLocator

public class LocalFileSystemMavenRepository
extends Object
implements ArtifactLocator

Locator for artifacts found in the local maven repository. Does not use Maven libraries, it rather uses the maven patterns and conventions to identify the artifacts.

Author:
Hal Hildebrand, Costin Leau

Field Summary
 
Fields inherited from interface org.eclipse.gemini.blueprint.test.provisioning.ArtifactLocator
DEFAULT_ARTIFACT_TYPE
 
Constructor Summary
LocalFileSystemMavenRepository()
           
 
Method Summary
protected  org.springframework.core.io.Resource localMavenBuildArtifact(String groupId, String artifactId, String version, String type)
          Find a local maven artifact in the current build tree.
protected  org.springframework.core.io.Resource localMavenBundle(String groupId, String artifact, String version, String type)
          Return the resource of the indicated bundle in the local Maven repository
 org.springframework.core.io.Resource locateArtifact(String groupId, String artifactId, String version)
          Find a local maven artifact.
 org.springframework.core.io.Resource locateArtifact(String groupId, String artifactId, String version, String type)
          Find a local maven artifact.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalFileSystemMavenRepository

public LocalFileSystemMavenRepository()
Method Detail

locateArtifact

public org.springframework.core.io.Resource locateArtifact(String groupId,
                                                           String artifactId,
                                                           String version)
Find a local maven artifact. First tries to find the resource as a packaged artifact produced by a local maven build, and if that fails will search the local maven repository.

Specified by:
locateArtifact in interface ArtifactLocator
Parameters:
groupId - - the groupId of the organization supplying the bundle
artifactId - - the artifact id of the bundle
version - - the version of the bundle
Returns:
the String representing the URL location of this bundle

locateArtifact

public org.springframework.core.io.Resource locateArtifact(String groupId,
                                                           String artifactId,
                                                           String version,
                                                           String type)
Find a local maven artifact. First tries to find the resource as a packaged artifact produced by a local maven build, and if that fails will search the local maven repository.

Specified by:
locateArtifact in interface ArtifactLocator
Parameters:
groupId - - the groupId of the organization supplying the bundle
artifactId - - the artifact id of the bundle
version - - the version of the bundle
type - - the extension type of the artifact
Returns:

localMavenBundle

protected org.springframework.core.io.Resource localMavenBundle(String groupId,
                                                                String artifact,
                                                                String version,
                                                                String type)
Return the resource of the indicated bundle in the local Maven repository

Parameters:
groupId - - the groupId of the organization supplying the bundle
artifact - - the artifact id of the bundle
version - - the version of the bundle
Returns:

localMavenBuildArtifact

protected org.springframework.core.io.Resource localMavenBuildArtifact(String groupId,
                                                                       String artifactId,
                                                                       String version,
                                                                       String type)
Find a local maven artifact in the current build tree. This searches for resources produced by the package phase of a maven build.

Parameters:
artifactId -
version -
type -
Returns:


Copyright © 2006-2013. All Rights Reserved.