|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sonatype.aether.repository.LocalArtifactRegistration
public class LocalArtifactRegistration
A request to register an artifact within the local repository. Certain local repository implementations can refuse to serve physically present artifacts if those haven't been previously registered to them.
LocalRepositoryManager.add(RepositorySystemSession, LocalArtifactRegistration)| Constructor Summary | |
|---|---|
LocalArtifactRegistration()
Creates an uninitialized registration. |
|
LocalArtifactRegistration(Artifact artifact)
Creates a registration request for the specified (locally built) artifact. |
|
LocalArtifactRegistration(Artifact artifact,
RemoteRepository repository,
Collection<String> contexts)
Creates a registration request for the specified (remotely resolved) artifact. |
|
| Method Summary | |
|---|---|
Artifact |
getArtifact()
Gets the artifact to register. |
Collection<String> |
getContexts()
Gets the resolution contexts in which the artifact is available. |
RemoteRepository |
getRepository()
Gets the remote repository from which the artifact was resolved. |
LocalArtifactRegistration |
setArtifact(Artifact artifact)
Sets the artifact to register. |
LocalArtifactRegistration |
setContexts(Collection<String> contexts)
Sets the resolution contexts in which the artifact is available. |
LocalArtifactRegistration |
setRepository(RemoteRepository repository)
Sets the remote repository from which the artifact was resolved. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LocalArtifactRegistration()
public LocalArtifactRegistration(Artifact artifact)
artifact - The artifact to register, may be null.
public LocalArtifactRegistration(Artifact artifact,
RemoteRepository repository,
Collection<String> contexts)
artifact - The artifact to register, may be null.repository - The remote repository from which the artifact was resolved or null if the artifact was
locally built.contexts - The resolution contexts, may be null.| Method Detail |
|---|
public Artifact getArtifact()
null if not set.public LocalArtifactRegistration setArtifact(Artifact artifact)
artifact - The artifact, may be null.
null.public RemoteRepository getRepository()
null if the artifact was locally built.public LocalArtifactRegistration setRepository(RemoteRepository repository)
repository - The remote repository or null if the artifact was locally built.
null.public Collection<String> getContexts()
null.public LocalArtifactRegistration setContexts(Collection<String> contexts)
contexts - The resolution contexts, may be null.
null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||