public final class LocalArtifactRegistration extends Object
| Constructor and Description | 
|---|
LocalArtifactRegistration()
Creates an uninitialized registration. 
 | 
LocalArtifactRegistration(Artifact artifact)
Creates a registration request for the specified (locally installed) artifact. 
 | 
LocalArtifactRegistration(Artifact artifact,
                         RemoteRepository repository,
                         Collection<String> contexts)
Creates a registration request for the specified artifact. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
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. 
 | 
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 installed.contexts - The resolution contexts, may be null.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 installed.public LocalArtifactRegistration setRepository(RemoteRepository repository)
repository - The remote repository or null if the artifact was locally installed.null.public Collection<String> getContexts()
null.public LocalArtifactRegistration setContexts(Collection<String> contexts)
contexts - The resolution contexts, may be null.null.Copyright © 2010–2021 The Apache Software Foundation. All rights reserved.