Package org.eclipse.aether.repository
Class WorkspaceRepository
java.lang.Object
org.eclipse.aether.repository.WorkspaceRepository
- All Implemented Interfaces:
- ArtifactRepository
A repository backed by an IDE workspace, the output of a build session or similar ad-hoc collection of artifacts. As
 far as the repository system is concerned, a workspace repository is read-only, i.e. can only be used for artifact
 resolution but not installation/deployment. Note that this class merely describes such a repository, actual access to
 the contained artifacts is handled by a 
WorkspaceReader.- 
Constructor SummaryConstructorsConstructorDescriptionCreates a new workspace repository of type"workspace"and a random key.WorkspaceRepository(String type) Creates a new workspace repository with the specified type and a random key.WorkspaceRepository(String type, Object key) Creates a new workspace repository with the specified type and key.
- 
Method Summary
- 
Constructor Details- 
WorkspaceRepositorypublic WorkspaceRepository()Creates a new workspace repository of type"workspace"and a random key.
- 
WorkspaceRepositoryCreates a new workspace repository with the specified type and a random key.- Parameters:
- type- The type of the repository, may be- null.
 
- 
WorkspaceRepositoryCreates a new workspace repository with the specified type and key. The key is used to distinguish one workspace from another and should be sensitive to the artifacts that are (potentially) available in the workspace.- Parameters:
- type- The type of the repository, may be- null.
- key- The (comparison) key for the repository, may be- nullto generate a unique random key.
 
 
- 
- 
Method Details- 
getContentTypeDescription copied from interface:ArtifactRepositoryGets the type of the repository, for example "default".- Specified by:
- getContentTypein interface- ArtifactRepository
- Returns:
- The (case-sensitive) type of the repository, never null.
 
- 
getIdDescription copied from interface:ArtifactRepositoryGets the identifier of this repository.- Specified by:
- getIdin interface- ArtifactRepository
- Returns:
- The (case-sensitive) identifier, never null.
 
- 
getKeyGets the key of this workspace repository. The key is used to distinguish one workspace from another and should be sensitive to the artifacts that are (potentially) available in the workspace.- Returns:
- The (comparison) key for this workspace repository, never null.
 
- 
toString
- 
equals
- 
hashCode
 
-