Class DefaultSyncContextFactory

java.lang.Object
org.eclipse.aether.internal.impl.synccontext.DefaultSyncContextFactory
All Implemented Interfaces:
org.eclipse.aether.spi.synccontext.SyncContextFactory

@Singleton @Named public final class DefaultSyncContextFactory extends Object implements org.eclipse.aether.spi.synccontext.SyncContextFactory
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.

  • Constructor Details

  • Method Details

    • 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