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
DefaultSyncContextFactoryimplementation that uses named locks.The implementation relies fully on
NamedLockFactoryAdapterFactoryand all it does is just "stuff" the adapter instance into session, hence factory is called only when given session has no instance created.
-
-
Constructor Summary
Constructors Constructor Description DefaultSyncContextFactory()Deprecated.Will be removed once ServiceLocator removed.DefaultSyncContextFactory(NamedLockFactoryAdapterFactory namedLockFactoryAdapterFactory)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 voidinitService(org.eclipse.aether.spi.locator.ServiceLocator locator)org.eclipse.aether.SyncContextnewInstance(org.eclipse.aether.RepositorySystemSession session, boolean shared)
-
-
-
Constructor Detail
-
DefaultSyncContextFactory
@Inject public DefaultSyncContextFactory(NamedLockFactoryAdapterFactory namedLockFactoryAdapterFactory)
Constructor used with DI, where factories are injected and selected based on key.
-
DefaultSyncContextFactory
@Deprecated public DefaultSyncContextFactory()
Deprecated.Will be removed once ServiceLocator removed.ServiceLocator default ctor.
-
-
Method Detail
-
initService
public void initService(org.eclipse.aether.spi.locator.ServiceLocator locator)
- Specified by:
initServicein interfaceorg.eclipse.aether.spi.locator.Service
-
newInstance
public org.eclipse.aether.SyncContext newInstance(org.eclipse.aether.RepositorySystemSession session, boolean shared)
- Specified by:
newInstancein interfaceorg.eclipse.aether.spi.synccontext.SyncContextFactory
-
-