Package org.eclipse.aether.repository
Class LocalMetadataRegistration
java.lang.Object
org.eclipse.aether.repository.LocalMetadataRegistration
A request to register metadata within the local repository.
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionCreates an uninitialized registration.LocalMetadataRegistration(Metadata metadata) Creates a registration request for the specified metadata accompanying a locally installed artifact.LocalMetadataRegistration(Metadata metadata, RemoteRepository repository, Collection<String> contexts) Creates a registration request for the specified metadata.
- 
Method SummaryModifier and TypeMethodDescriptionGets the resolution contexts in which the metadata is available.Gets the metadata to register.Gets the remote repository from which the metadata was resolved.setContexts(Collection<String> contexts) Sets the resolution contexts in which the metadata is available.setMetadata(Metadata metadata) Sets the metadata to register.setRepository(RemoteRepository repository) Sets the remote repository from which the metadata was resolved.
- 
Constructor Details- 
LocalMetadataRegistrationpublic LocalMetadataRegistration()Creates an uninitialized registration.
- 
LocalMetadataRegistrationCreates a registration request for the specified metadata accompanying a locally installed artifact.- Parameters:
- metadata- The metadata to register, may be- null.
 
- 
LocalMetadataRegistrationpublic LocalMetadataRegistration(Metadata metadata, RemoteRepository repository, Collection<String> contexts) Creates a registration request for the specified metadata.- Parameters:
- metadata- The metadata to register, may be- null.
- repository- The remote repository from which the metadata was resolved or- nullif the metadata accompanies a locally installed artifact.
- contexts- The resolution contexts, may be- null.
 
 
- 
- 
Method Details- 
getMetadataGets the metadata to register.- Returns:
- The metadata or nullif not set.
 
- 
setMetadataSets the metadata to register.- Parameters:
- metadata- The metadata, may be- null.
- Returns:
- This request for chaining, never null.
 
- 
getRepositoryGets the remote repository from which the metadata was resolved.- Returns:
- The remote repository or nullif the metadata was locally installed.
 
- 
setRepositorySets the remote repository from which the metadata was resolved.- Parameters:
- repository- The remote repository or- nullif the metadata accompanies a locally installed artifact.
- Returns:
- This request for chaining, never null.
 
- 
getContextsGets the resolution contexts in which the metadata is available.- Returns:
- The resolution contexts in which the metadata is available, never null.
 
- 
setContextsSets the resolution contexts in which the metadata is available.- Parameters:
- contexts- The resolution contexts, may be- null.
- Returns:
- This request for chaining, never null.
 
 
-