Package org.eclipse.aether.internal.impl
Class DefaultMetadataResolver
- java.lang.Object
-
- org.eclipse.aether.internal.impl.DefaultMetadataResolver
-
- All Implemented Interfaces:
MetadataResolver
,Service
@Named public class DefaultMetadataResolver extends Object implements MetadataResolver, Service
-
-
Constructor Summary
Constructors Constructor Description DefaultMetadataResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
initService(ServiceLocator locator)
Provides the opportunity to initialize this service and to acquire other services for its operation from the locator.List<MetadataResult>
resolveMetadata(RepositorySystemSession session, Collection<? extends MetadataRequest> requests)
Resolves the paths for a collection of metadata.DefaultMetadataResolver
setOfflineController(OfflineController offlineController)
DefaultMetadataResolver
setRemoteRepositoryManager(RemoteRepositoryManager remoteRepositoryManager)
DefaultMetadataResolver
setRepositoryConnectorProvider(RepositoryConnectorProvider repositoryConnectorProvider)
DefaultMetadataResolver
setRepositoryEventDispatcher(RepositoryEventDispatcher repositoryEventDispatcher)
DefaultMetadataResolver
setSyncContextFactory(SyncContextFactory syncContextFactory)
DefaultMetadataResolver
setUpdateCheckManager(UpdateCheckManager updateCheckManager)
-
-
-
Constructor Detail
-
DefaultMetadataResolver
public DefaultMetadataResolver()
-
-
Method Detail
-
initService
public void initService(ServiceLocator locator)
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
public DefaultMetadataResolver setUpdateCheckManager(UpdateCheckManager updateCheckManager)
-
setRepositoryConnectorProvider
public DefaultMetadataResolver setRepositoryConnectorProvider(RepositoryConnectorProvider repositoryConnectorProvider)
-
setRemoteRepositoryManager
public DefaultMetadataResolver setRemoteRepositoryManager(RemoteRepositoryManager remoteRepositoryManager)
-
setSyncContextFactory
public DefaultMetadataResolver setSyncContextFactory(SyncContextFactory syncContextFactory)
-
setOfflineController
public DefaultMetadataResolver setOfflineController(OfflineController offlineController)
-
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:
Metadata.getFile()
,RepositorySystem.resolveMetadata(RepositorySystemSession, Collection)
-
-