Class LocalMetadataRegistration

java.lang.Object
org.eclipse.aether.repository.LocalMetadataRegistration

public final class LocalMetadataRegistration extends Object
A request to register metadata within the local repository.
See Also:
  • Constructor Details Link icon

    • LocalMetadataRegistration Link icon

      Creates an uninitialized registration.
    • LocalMetadataRegistration Link icon

      Creates a registration request for the specified metadata accompanying a locally installed artifact.
      Parameters:
      metadata - The metadata to register, may be null.
    • LocalMetadataRegistration Link icon

      public 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 null if the metadata accompanies a locally installed artifact.
      contexts - The resolution contexts, may be null.
  • Method Details Link icon

    • getMetadata Link icon

      Gets the metadata to register.
      Returns:
      The metadata or null if not set.
    • setMetadata Link icon

      Sets the metadata to register.
      Parameters:
      metadata - The metadata, may be null.
      Returns:
      This request for chaining, never null.
    • getRepository Link icon

      Gets the remote repository from which the metadata was resolved.
      Returns:
      The remote repository or null if the metadata was locally installed.
    • setRepository Link icon

      Sets the remote repository from which the metadata was resolved.
      Parameters:
      repository - The remote repository or null if the metadata accompanies a locally installed artifact.
      Returns:
      This request for chaining, never null.
    • getContexts Link icon

      Gets the resolution contexts in which the metadata is available.
      Returns:
      The resolution contexts in which the metadata is available, never null.
    • setContexts Link icon

      Sets the resolution contexts in which the metadata is available.
      Parameters:
      contexts - The resolution contexts, may be null.
      Returns:
      This request for chaining, never null.