Package org.eclipse.aether.internal.impl
Class DefaultMetadataResolver
java.lang.Object
org.eclipse.aether.internal.impl.DefaultMetadataResolver
- All Implemented Interfaces:
MetadataResolver
,Service
@Singleton
@Named
public class DefaultMetadataResolver
extends Object
implements MetadataResolver, Service
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
initService
(ServiceLocator locator) Provides the opportunity to initialize this service and to acquire other services for its operation from the locator.resolveMetadata
(RepositorySystemSession session, Collection<? extends MetadataRequest> requests) Resolves the paths for a collection of metadata.setOfflineController
(OfflineController offlineController) setRemoteRepositoryFilterManager
(RemoteRepositoryFilterManager remoteRepositoryFilterManager) setRemoteRepositoryManager
(RemoteRepositoryManager remoteRepositoryManager) setRepositoryConnectorProvider
(RepositoryConnectorProvider repositoryConnectorProvider) setRepositoryEventDispatcher
(RepositoryEventDispatcher repositoryEventDispatcher) setSyncContextFactory
(SyncContextFactory syncContextFactory) setUpdateCheckManager
(UpdateCheckManager updateCheckManager)
-
Constructor Details
-
DefaultMetadataResolver
public DefaultMetadataResolver()
-
-
Method Details
-
initService
Description copied from interface:Service
Provides the opportunity to initialize this service and to acquire other services for its operation from the locator. A service must not save the reference to the provided service locator.- Specified by:
initService
in interfaceService
- Parameters:
locator
- The service locator, must not benull
.
-
setRepositoryEventDispatcher
public DefaultMetadataResolver setRepositoryEventDispatcher(RepositoryEventDispatcher repositoryEventDispatcher) -
setUpdateCheckManager
-
setRepositoryConnectorProvider
public DefaultMetadataResolver setRepositoryConnectorProvider(RepositoryConnectorProvider repositoryConnectorProvider) -
setRemoteRepositoryManager
public DefaultMetadataResolver setRemoteRepositoryManager(RemoteRepositoryManager remoteRepositoryManager) -
setSyncContextFactory
-
setOfflineController
-
setRemoteRepositoryFilterManager
public DefaultMetadataResolver setRemoteRepositoryFilterManager(RemoteRepositoryFilterManager remoteRepositoryFilterManager) -
resolveMetadata
public List<MetadataResult> resolveMetadata(RepositorySystemSession session, Collection<? extends MetadataRequest> requests) Description copied from interface:MetadataResolver
Resolves the paths for a collection of metadata. Metadata will be downloaded to the local repository if necessary, e.g. because it hasn't been cached yet or the cache is deemed outdated.- Specified by:
resolveMetadata
in interfaceMetadataResolver
- Parameters:
session
- The repository session, must not benull
.requests
- The resolution requests, must not benull
.- Returns:
- The resolution results (in request order), never
null
. - See Also:
-