Class DefaultRepositorySystem

java.lang.Object
org.eclipse.aether.internal.impl.DefaultRepositorySystem
All Implemented Interfaces:
Closeable, AutoCloseable, org.eclipse.aether.RepositorySystem

@Singleton @Named public class DefaultRepositorySystem extends Object implements org.eclipse.aether.RepositorySystem
  • Constructor Summary

    Constructors
    Constructor
    Description
    DefaultRepositorySystem(VersionResolver versionResolver, VersionRangeResolver versionRangeResolver, ArtifactResolver artifactResolver, MetadataResolver metadataResolver, ArtifactDescriptorReader artifactDescriptorReader, DependencyCollector dependencyCollector, Installer installer, Deployer deployer, LocalRepositoryProvider localRepositoryProvider, org.eclipse.aether.spi.synccontext.SyncContextFactory syncContextFactory, RemoteRepositoryManager remoteRepositoryManager, RepositorySystemLifecycle repositorySystemLifecycle)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    org.eclipse.aether.collection.CollectResult
    collectDependencies(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.collection.CollectRequest request)
     
    org.eclipse.aether.RepositorySystemSession.SessionBuilder
     
    org.eclipse.aether.deployment.DeployResult
    deploy(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.deployment.DeployRequest request)
     
    List<org.eclipse.aether.graph.DependencyNode>
    flattenDependencyNodes(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.graph.DependencyNode root)
     
    org.eclipse.aether.installation.InstallResult
    install(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.installation.InstallRequest request)
     
    org.eclipse.aether.repository.RemoteRepository
    newDeploymentRepository(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.repository.RemoteRepository repository)
     
    org.eclipse.aether.repository.LocalRepositoryManager
    newLocalRepositoryManager(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.repository.LocalRepository localRepository)
     
    List<org.eclipse.aether.repository.RemoteRepository>
    newResolutionRepositories(org.eclipse.aether.RepositorySystemSession session, List<org.eclipse.aether.repository.RemoteRepository> repositories)
     
    org.eclipse.aether.SyncContext
    newSyncContext(org.eclipse.aether.RepositorySystemSession session, boolean shared)
     
    org.eclipse.aether.resolution.ArtifactDescriptorResult
    readArtifactDescriptor(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.resolution.ArtifactDescriptorRequest request)
     
    org.eclipse.aether.resolution.ArtifactResult
    resolveArtifact(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.resolution.ArtifactRequest request)
     
    List<org.eclipse.aether.resolution.ArtifactResult>
    resolveArtifacts(org.eclipse.aether.RepositorySystemSession session, Collection<? extends org.eclipse.aether.resolution.ArtifactRequest> requests)
     
    org.eclipse.aether.resolution.DependencyResult
    resolveDependencies(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.resolution.DependencyRequest request)
     
    List<org.eclipse.aether.resolution.MetadataResult>
    resolveMetadata(org.eclipse.aether.RepositorySystemSession session, Collection<? extends org.eclipse.aether.resolution.MetadataRequest> requests)
     
    org.eclipse.aether.resolution.VersionResult
    resolveVersion(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.resolution.VersionRequest request)
     
    org.eclipse.aether.resolution.VersionRangeResult
    resolveVersionRange(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.resolution.VersionRangeRequest request)
     
    void
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.eclipse.aether.RepositorySystem

    close
  • Constructor Details

  • Method Details

    • resolveVersion

      public org.eclipse.aether.resolution.VersionResult resolveVersion(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.resolution.VersionRequest request) throws org.eclipse.aether.resolution.VersionResolutionException
      Specified by:
      resolveVersion in interface org.eclipse.aether.RepositorySystem
      Throws:
      org.eclipse.aether.resolution.VersionResolutionException
    • resolveVersionRange

      public org.eclipse.aether.resolution.VersionRangeResult resolveVersionRange(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.resolution.VersionRangeRequest request) throws org.eclipse.aether.resolution.VersionRangeResolutionException
      Specified by:
      resolveVersionRange in interface org.eclipse.aether.RepositorySystem
      Throws:
      org.eclipse.aether.resolution.VersionRangeResolutionException
    • readArtifactDescriptor

      public org.eclipse.aether.resolution.ArtifactDescriptorResult readArtifactDescriptor(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.resolution.ArtifactDescriptorRequest request) throws org.eclipse.aether.resolution.ArtifactDescriptorException
      Specified by:
      readArtifactDescriptor in interface org.eclipse.aether.RepositorySystem
      Throws:
      org.eclipse.aether.resolution.ArtifactDescriptorException
    • resolveArtifact

      public org.eclipse.aether.resolution.ArtifactResult resolveArtifact(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.resolution.ArtifactRequest request) throws org.eclipse.aether.resolution.ArtifactResolutionException
      Specified by:
      resolveArtifact in interface org.eclipse.aether.RepositorySystem
      Throws:
      org.eclipse.aether.resolution.ArtifactResolutionException
    • resolveArtifacts

      public List<org.eclipse.aether.resolution.ArtifactResult> resolveArtifacts(org.eclipse.aether.RepositorySystemSession session, Collection<? extends org.eclipse.aether.resolution.ArtifactRequest> requests) throws org.eclipse.aether.resolution.ArtifactResolutionException
      Specified by:
      resolveArtifacts in interface org.eclipse.aether.RepositorySystem
      Throws:
      org.eclipse.aether.resolution.ArtifactResolutionException
    • resolveMetadata

      public List<org.eclipse.aether.resolution.MetadataResult> resolveMetadata(org.eclipse.aether.RepositorySystemSession session, Collection<? extends org.eclipse.aether.resolution.MetadataRequest> requests)
      Specified by:
      resolveMetadata in interface org.eclipse.aether.RepositorySystem
    • collectDependencies

      public org.eclipse.aether.collection.CollectResult collectDependencies(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.collection.CollectRequest request) throws org.eclipse.aether.collection.DependencyCollectionException
      Specified by:
      collectDependencies in interface org.eclipse.aether.RepositorySystem
      Throws:
      org.eclipse.aether.collection.DependencyCollectionException
    • resolveDependencies

      public org.eclipse.aether.resolution.DependencyResult resolveDependencies(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.resolution.DependencyRequest request) throws org.eclipse.aether.resolution.DependencyResolutionException
      Specified by:
      resolveDependencies in interface org.eclipse.aether.RepositorySystem
      Throws:
      org.eclipse.aether.resolution.DependencyResolutionException
    • flattenDependencyNodes

      public List<org.eclipse.aether.graph.DependencyNode> flattenDependencyNodes(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.graph.DependencyNode root)
      Specified by:
      flattenDependencyNodes in interface org.eclipse.aether.RepositorySystem
    • install

      public org.eclipse.aether.installation.InstallResult install(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.installation.InstallRequest request) throws org.eclipse.aether.installation.InstallationException
      Specified by:
      install in interface org.eclipse.aether.RepositorySystem
      Throws:
      org.eclipse.aether.installation.InstallationException
    • deploy

      public org.eclipse.aether.deployment.DeployResult deploy(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.deployment.DeployRequest request) throws org.eclipse.aether.deployment.DeploymentException
      Specified by:
      deploy in interface org.eclipse.aether.RepositorySystem
      Throws:
      org.eclipse.aether.deployment.DeploymentException
    • newLocalRepositoryManager

      public org.eclipse.aether.repository.LocalRepositoryManager newLocalRepositoryManager(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.repository.LocalRepository localRepository)
      Specified by:
      newLocalRepositoryManager in interface org.eclipse.aether.RepositorySystem
    • newSyncContext

      public org.eclipse.aether.SyncContext newSyncContext(org.eclipse.aether.RepositorySystemSession session, boolean shared)
      Specified by:
      newSyncContext in interface org.eclipse.aether.RepositorySystem
    • newResolutionRepositories

      public List<org.eclipse.aether.repository.RemoteRepository> newResolutionRepositories(org.eclipse.aether.RepositorySystemSession session, List<org.eclipse.aether.repository.RemoteRepository> repositories)
      Specified by:
      newResolutionRepositories in interface org.eclipse.aether.RepositorySystem
    • newDeploymentRepository

      public org.eclipse.aether.repository.RemoteRepository newDeploymentRepository(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.repository.RemoteRepository repository)
      Specified by:
      newDeploymentRepository in interface org.eclipse.aether.RepositorySystem
    • addOnSystemEndedHandler

      public void addOnSystemEndedHandler(Runnable handler)
      Specified by:
      addOnSystemEndedHandler in interface org.eclipse.aether.RepositorySystem
    • createSessionBuilder

      public org.eclipse.aether.RepositorySystemSession.SessionBuilder createSessionBuilder()
      Specified by:
      createSessionBuilder in interface org.eclipse.aether.RepositorySystem
    • shutdown

      public void shutdown()
      Specified by:
      shutdown in interface org.eclipse.aether.RepositorySystem