|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.sonatype.aether.impl.internal.SimpleLocalRepositoryManager
public class SimpleLocalRepositoryManager
A local repository manager that realizes the classical Maven 2.0 local repository.
Constructor Summary | |
---|---|
SimpleLocalRepositoryManager(java.io.File basedir)
|
|
SimpleLocalRepositoryManager(java.lang.String basedir)
|
Method Summary | |
---|---|
void |
add(RepositorySystemSession session,
LocalArtifactRegistration request)
Registers an installed or resolved artifact with the local repository. |
void |
add(RepositorySystemSession session,
LocalMetadataRegistration request)
Registers installed or resolved metadata with the local repository. |
LocalArtifactResult |
find(RepositorySystemSession session,
LocalArtifactRequest request)
Queries for the existence of an artifact in the local repository. |
LocalMetadataResult |
find(RepositorySystemSession session,
LocalMetadataRequest request)
Queries for the existence of metadata in the local repository. |
java.lang.String |
getPathForLocalArtifact(Artifact artifact)
Gets the relative path for a locally installed artifact. |
java.lang.String |
getPathForLocalMetadata(Metadata metadata)
Gets the relative path for locally installed metadata. |
java.lang.String |
getPathForRemoteArtifact(Artifact artifact,
RemoteRepository repository,
java.lang.String context)
Gets the relative path for an artifact cached from a remote repository. |
java.lang.String |
getPathForRemoteMetadata(Metadata metadata,
RemoteRepository repository,
java.lang.String context)
Gets the relative path for metadata cached from a remote repository. |
LocalRepository |
getRepository()
Gets the description of the local repository being managed. |
SimpleLocalRepositoryManager |
setLogger(Logger logger)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SimpleLocalRepositoryManager(java.io.File basedir)
public SimpleLocalRepositoryManager(java.lang.String basedir)
Method Detail |
---|
public SimpleLocalRepositoryManager setLogger(Logger logger)
public LocalRepository getRepository()
LocalRepositoryManager
getRepository
in interface LocalRepositoryManager
null
.public java.lang.String getPathForLocalArtifact(Artifact artifact)
LocalRepositoryManager
getPathForLocalArtifact
in interface LocalRepositoryManager
artifact
- The artifact for which to determine the path, must not be null
.
public java.lang.String getPathForRemoteArtifact(Artifact artifact, RemoteRepository repository, java.lang.String context)
LocalRepositoryManager
getPathForRemoteArtifact
in interface LocalRepositoryManager
artifact
- The artifact for which to determine the path, must not be null
.repository
- The source repository of the artifact, must not be null
.context
- The resolution context in which the artifact is being requested, may be null
.
public java.lang.String getPathForLocalMetadata(Metadata metadata)
LocalRepositoryManager
getPathForLocalMetadata
in interface LocalRepositoryManager
metadata
- The metadata for which to determine the path, must not be null
.
public java.lang.String getPathForRemoteMetadata(Metadata metadata, RemoteRepository repository, java.lang.String context)
LocalRepositoryManager
getPathForRemoteMetadata
in interface LocalRepositoryManager
metadata
- The metadata for which to determine the path, must not be null
.repository
- The source repository of the metadata, must not be null
.context
- The resolution context in which the metadata is being requested, may be null
.
public LocalArtifactResult find(RepositorySystemSession session, LocalArtifactRequest request)
LocalRepositoryManager
find
in interface LocalRepositoryManager
session
- The repository system session during which the request is made, must not be null
.request
- The artifact request, must not be null
.
null
.public void add(RepositorySystemSession session, LocalArtifactRegistration request)
LocalRepositoryManager
add
in interface LocalRepositoryManager
session
- The repository system session during which the registration is made, must not be null
.request
- The registration request, must not be null
.public java.lang.String toString()
toString
in class java.lang.Object
public LocalMetadataResult find(RepositorySystemSession session, LocalMetadataRequest request)
LocalRepositoryManager
find
in interface LocalRepositoryManager
session
- The repository system session during which the request is made, must not be null
.request
- The metadata request, must not be null
.
null
.public void add(RepositorySystemSession session, LocalMetadataRegistration request)
LocalRepositoryManager
add
in interface LocalRepositoryManager
session
- The repository system session during which the registration is made, must not be null
.request
- The registration request, must not be null
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |