Class EnhancedLocalRepositoryManagerFactory

  • All Implemented Interfaces:
    LocalRepositoryManagerFactory, Service

    @Singleton
    @Named("enhanced")
    public class EnhancedLocalRepositoryManagerFactory
    extends java.lang.Object
    implements LocalRepositoryManagerFactory, Service
    Creates enhanced local repository managers for repository types "default" or "" (automatic). Enhanced local repository manager is built upon the classical Maven 2.0 local repository structure but additionally keeps track of from what repositories a cached artifact was resolved. Resolution of locally cached artifacts will be rejected in case the current resolution request does not match the known source repositories of an artifact, thereby emulating physically separated artifact caches per remote repository.
    • Field Detail

      • priority

        private float priority
    • Constructor Detail

      • EnhancedLocalRepositoryManagerFactory

        public EnhancedLocalRepositoryManagerFactory()
      • EnhancedLocalRepositoryManagerFactory

        @Inject
        public EnhancedLocalRepositoryManagerFactory​(TrackingFileManager trackingFileManager)
    • 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 interface Service
        Parameters:
        locator - The service locator, must not be null.
      • setPriority

        public EnhancedLocalRepositoryManagerFactory setPriority​(float priority)
        Sets the priority of this component.
        Parameters:
        priority - The priority.
        Returns:
        This component for chaining, never null.