org.springframework.osgi.test.provisioning
Interface ArtifactLocator


public interface ArtifactLocator

Interface describing the contract for finding dependencies artifacts. Implementations can rely on various lookup strategies for finding the actual artifacts (i.e. Maven, Ant, Ivy, etc...)

Author:
Costin Leau

Field Summary
static String DEFAULT_ARTIFACT_TYPE
          default artifact type
 
Method Summary
 Resource locateArtifact(String group, String id, String version)
          Locates the artifact under the given group, with the given id, version and type.
 Resource locateArtifact(String group, String id, String version, String type)
          Locates the artifact under the given group, with the given id, version and type.
 

Field Detail

DEFAULT_ARTIFACT_TYPE

static final String DEFAULT_ARTIFACT_TYPE
default artifact type

See Also:
Constant Field Values
Method Detail

locateArtifact

Resource locateArtifact(String group,
                        String id,
                        String version,
                        String type)
Locates the artifact under the given group, with the given id, version and type. Implementations are free to provide defaults, in case null values are passed in. The only required field is #id.

Parameters:
group - artifact group (can be null)
id - artifact id or name (required)
version - artifact version (can be null)
type - artifact type (can be null)
Returns:
Spring resource to the located artifact

locateArtifact

Resource locateArtifact(String group,
                        String id,
                        String version)
Locates the artifact under the given group, with the given id, version and type. This is a shortcut version which uses the implementation default artifact type DEFAULT_ARTIFACT_TYPE.

Parameters:
group - artifact group (can be null)
id - artifact id or name (required)
version - artifact version (can be null)
Returns:
Spring resource to the located artifact


Copyright © 2006-2009 Spring Framework. All Rights Reserved.