Class LocalArtifactRegistration

    • Constructor Detail

      • LocalArtifactRegistration

        public LocalArtifactRegistration​(Artifact artifact)
        Creates a registration request for the specified (locally installed) artifact.
        Parameters:
        artifact - The artifact to register, may be null.
      • LocalArtifactRegistration

        public LocalArtifactRegistration​(Artifact artifact,
                                         RemoteRepository repository,
                                         Collection<String> contexts)
        Creates a registration request for the specified artifact.
        Parameters:
        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.
    • Method Detail

      • getArtifact

        public Artifact getArtifact()
        Gets the artifact to register.
        Returns:
        The artifact or null if not set.
      • getRepository

        public RemoteRepository getRepository()
        Gets the remote repository from which the artifact was resolved.
        Returns:
        The remote repository or null if the artifact was locally installed.
      • setRepository

        public LocalArtifactRegistration setRepository​(RemoteRepository repository)
        Sets the remote repository from which the artifact was resolved.
        Parameters:
        repository - The remote repository or null if the artifact was locally installed.
        Returns:
        This request for chaining, never null.
      • getContexts

        public Collection<StringgetContexts()
        Gets the resolution contexts in which the artifact is available.
        Returns:
        The resolution contexts in which the artifact is available, never null.
      • setContexts

        public LocalArtifactRegistration setContexts​(Collection<String> contexts)
        Sets the resolution contexts in which the artifact is available.
        Parameters:
        contexts - The resolution contexts, may be null.
        Returns:
        This request for chaining, never null.