Class DefaultSyncContextFactory

  • All Implemented Interfaces:
    org.eclipse.aether.spi.locator.Service, org.eclipse.aether.spi.synccontext.SyncContextFactory

    @Singleton
    @Named
    public final class DefaultSyncContextFactory
    extends java.lang.Object
    implements org.eclipse.aether.spi.synccontext.SyncContextFactory, org.eclipse.aether.spi.locator.Service
    Default SyncContextFactory implementation that uses named locks.

    The implementation relies fully on NamedLockFactoryAdapterFactory and all it does is just "stuff" the adapter instance into session, hence factory is called only when given session has no instance created.

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void initService​(org.eclipse.aether.spi.locator.ServiceLocator locator)  
      org.eclipse.aether.SyncContext newInstance​(org.eclipse.aether.RepositorySystemSession session, boolean shared)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • initService

        public void initService​(org.eclipse.aether.spi.locator.ServiceLocator locator)
        Specified by:
        initService in interface org.eclipse.aether.spi.locator.Service
      • newInstance

        public org.eclipse.aether.SyncContext newInstance​(org.eclipse.aether.RepositorySystemSession session,
                                                          boolean shared)
        Specified by:
        newInstance in interface org.eclipse.aether.spi.synccontext.SyncContextFactory