Class PrefixesLockingInhibitorFactory

  • All Implemented Interfaces:
    org.eclipse.aether.spi.locking.LockingInhibitor, org.eclipse.aether.spi.locking.LockingInhibitorFactory

    @Singleton
    @Named("prefixes")
    public class PrefixesLockingInhibitorFactory
    extends java.lang.Object
    implements org.eclipse.aether.spi.locking.LockingInhibitorFactory, org.eclipse.aether.spi.locking.LockingInhibitor
    Locking inhibitor for RRF prefix files. They are perfect candidates, as they are created on remote, and locally are only cached and read, and they do not clash on local file system (local repo) either, as they are stored in a file that has origin repository factored in (as any metadata is).
    Since:
    2.0.14
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String NAME  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Optional<org.eclipse.aether.spi.locking.LockingInhibitor> newInstance​(org.eclipse.aether.RepositorySystemSession session)  
      boolean preventMetadataLocking​(org.eclipse.aether.metadata.Metadata metadata)  
      • 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.spi.locking.LockingInhibitor

        preventArtifactLocking
    • Method Detail

      • newInstance

        public java.util.Optional<org.eclipse.aether.spi.locking.LockingInhibitor> newInstance​(org.eclipse.aether.RepositorySystemSession session)
        Specified by:
        newInstance in interface org.eclipse.aether.spi.locking.LockingInhibitorFactory
      • preventMetadataLocking

        public boolean preventMetadataLocking​(org.eclipse.aether.metadata.Metadata metadata)
        Specified by:
        preventMetadataLocking in interface org.eclipse.aether.spi.locking.LockingInhibitor