Class DefaultSyncContextFactory
- java.lang.Object
-
- org.eclipse.aether.internal.impl.synccontext.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
DefaultSyncContextFactory
implementation that uses named locks.
-
-
Constructor Summary
Constructors Constructor Description DefaultSyncContextFactory()
DefaultSyncContextFactory(NamedLockFactorySelector selector)
Constructor used with DI, where factories are injected and selected based on key.
-
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)
void
shutdown()
-
-
-
Constructor Detail
-
DefaultSyncContextFactory
@Inject public DefaultSyncContextFactory(NamedLockFactorySelector selector)
Constructor used with DI, where factories are injected and selected based on key.
-
DefaultSyncContextFactory
public DefaultSyncContextFactory()
-
-
Method Detail
-
initService
public void initService(org.eclipse.aether.spi.locator.ServiceLocator locator)
- Specified by:
initService
in interfaceorg.eclipse.aether.spi.locator.Service
-
newInstance
public org.eclipse.aether.SyncContext newInstance(org.eclipse.aether.RepositorySystemSession session, boolean shared)
- Specified by:
newInstance
in interfaceorg.eclipse.aether.spi.synccontext.SyncContextFactory
-
shutdown
@PreDestroy public void shutdown()
-
-