Package org.eclipse.aether.internal.impl
Class DefaultRepositorySystem
java.lang.Object
org.eclipse.aether.internal.impl.DefaultRepositorySystem
- All Implemented Interfaces:
org.eclipse.aether.RepositorySystem
,org.eclipse.aether.spi.locator.Service
@Singleton
@Named
public class DefaultRepositorySystem
extends Object
implements org.eclipse.aether.RepositorySystem, org.eclipse.aether.spi.locator.Service
-
Constructor Summary
ConstructorDescriptionDeprecated.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 TypeMethodDescriptionvoid
addOnSystemEndedHandler
(Runnable handler) org.eclipse.aether.collection.CollectResult
collectDependencies
(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.collection.CollectRequest request) org.eclipse.aether.deployment.DeployResult
deploy
(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.deployment.DeployRequest request) void
initService
(org.eclipse.aether.spi.locator.ServiceLocator locator) 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) setArtifactDescriptorReader
(ArtifactDescriptorReader artifactDescriptorReader) setArtifactResolver
(ArtifactResolver artifactResolver) setDependencyCollector
(DependencyCollector dependencyCollector) setDeployer
(Deployer deployer) setInstaller
(Installer installer) setLocalRepositoryProvider
(LocalRepositoryProvider localRepositoryProvider) setLoggerFactory
(org.eclipse.aether.spi.log.LoggerFactory loggerFactory) Deprecated.not used any more since MRESOLVER-36 move to slf4j, added back in MRESOLVER-64 for compatibilitysetMetadataResolver
(MetadataResolver metadataResolver) setRemoteRepositoryManager
(RemoteRepositoryManager remoteRepositoryManager) setRepositorySystemLifecycle
(RepositorySystemLifecycle repositorySystemLifecycle) setSyncContextFactory
(org.eclipse.aether.spi.synccontext.SyncContextFactory syncContextFactory) setVersionRangeResolver
(VersionRangeResolver versionRangeResolver) setVersionResolver
(VersionResolver versionResolver) void
shutdown()
-
Constructor Details
-
DefaultRepositorySystem
Deprecated. -
DefaultRepositorySystem
@Inject public 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 Details
-
initService
- Specified by:
initService
in interfaceorg.eclipse.aether.spi.locator.Service
-
setLoggerFactory
@Deprecated public DefaultRepositorySystem setLoggerFactory(org.eclipse.aether.spi.log.LoggerFactory loggerFactory) Deprecated.not used any more since MRESOLVER-36 move to slf4j, added back in MRESOLVER-64 for compatibility -
setVersionResolver
-
setVersionRangeResolver
-
setArtifactResolver
-
setMetadataResolver
-
setArtifactDescriptorReader
public DefaultRepositorySystem setArtifactDescriptorReader(ArtifactDescriptorReader artifactDescriptorReader) -
setDependencyCollector
-
setInstaller
-
setDeployer
-
setLocalRepositoryProvider
public DefaultRepositorySystem setLocalRepositoryProvider(LocalRepositoryProvider localRepositoryProvider) -
setSyncContextFactory
public DefaultRepositorySystem setSyncContextFactory(org.eclipse.aether.spi.synccontext.SyncContextFactory syncContextFactory) -
setRemoteRepositoryManager
public DefaultRepositorySystem setRemoteRepositoryManager(RemoteRepositoryManager remoteRepositoryManager) -
setRepositorySystemLifecycle
public DefaultRepositorySystem setRepositorySystemLifecycle(RepositorySystemLifecycle repositorySystemLifecycle) -
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 interfaceorg.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 interfaceorg.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 interfaceorg.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 interfaceorg.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 interfaceorg.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 interfaceorg.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 interfaceorg.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 interfaceorg.eclipse.aether.RepositorySystem
- Throws:
org.eclipse.aether.resolution.DependencyResolutionException
-
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 interfaceorg.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 interfaceorg.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 interfaceorg.eclipse.aether.RepositorySystem
-
newSyncContext
public org.eclipse.aether.SyncContext newSyncContext(org.eclipse.aether.RepositorySystemSession session, boolean shared) - Specified by:
newSyncContext
in interfaceorg.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 interfaceorg.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 interfaceorg.eclipse.aether.RepositorySystem
-
addOnSystemEndedHandler
- Specified by:
addOnSystemEndedHandler
in interfaceorg.eclipse.aether.RepositorySystem
-
shutdown
- Specified by:
shutdown
in interfaceorg.eclipse.aether.RepositorySystem
-