org.sonatype.aether.repository
Class WorkspaceRepository

java.lang.Object
  extended by org.sonatype.aether.repository.WorkspaceRepository
All Implemented Interfaces:
ArtifactRepository

public final class WorkspaceRepository
extends Object
implements ArtifactRepository

A repository backed by an IDE workspace or the output of a build session.

Author:
Benjamin Bentmann

Constructor Summary
WorkspaceRepository()
           
WorkspaceRepository(String type)
           
WorkspaceRepository(String type, Object key)
           
 
Method Summary
 boolean equals(Object obj)
           
 String getContentType()
          Gets the type of the repository, for example "default".
 String getId()
          Gets the identifier of this repository.
 Object getKey()
          Gets the key of this workspace repository.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WorkspaceRepository

public WorkspaceRepository()

WorkspaceRepository

public WorkspaceRepository(String type)

WorkspaceRepository

public WorkspaceRepository(String type,
                           Object key)
Method Detail

getContentType

public String getContentType()
Description copied from interface: ArtifactRepository
Gets the type of the repository, for example "default".

Specified by:
getContentType in interface ArtifactRepository
Returns:
The (case-sensitive) type of the repository, never null.

getId

public String getId()
Description copied from interface: ArtifactRepository
Gets the identifier of this repository.

Specified by:
getId in interface ArtifactRepository
Returns:
The (case-sensitive) identifier, never null.

getKey

public Object getKey()
Gets 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

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2010-2011 Sonatype, Inc.. All Rights Reserved.