Class DefaultSyncContextFactory
- java.lang.Object
-
- org.eclipse.aether.internal.impl.synccontext.legacy.DefaultSyncContextFactory
-
- All Implemented Interfaces:
SyncContextFactory
,Service
,SyncContextFactory
@Singleton @Named @Deprecated public final class DefaultSyncContextFactory extends java.lang.Object implements SyncContextFactory, Service
Deprecated.Use the proper class from SPI module.DeprecatedSyncContextFactory
implementation that delegates to properSyncContextFactory
implementation. Used in Guice/SISU where we cannot bind same instance to two keys, this component "bridges" from deprecated to current.
-
-
Field Summary
Fields Modifier and Type Field Description private SyncContextFactory
delegate
Deprecated.
-
Constructor Summary
Constructors Constructor Description DefaultSyncContextFactory()
Deprecated.DefaultSyncContextFactory(SyncContextFactory delegate)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
initService(ServiceLocator locator)
Deprecated.Provides the opportunity to initialize this service and to acquire other services for its operation from the locator.SyncContext
newInstance(RepositorySystemSession session, boolean shared)
Deprecated.Creates a new synchronization context.
-
-
-
Field Detail
-
delegate
private SyncContextFactory delegate
Deprecated.
-
-
Constructor Detail
-
DefaultSyncContextFactory
@Deprecated public DefaultSyncContextFactory()
Deprecated.
-
DefaultSyncContextFactory
@Inject public DefaultSyncContextFactory(SyncContextFactory delegate)
Deprecated.
-
-
Method Detail
-
initService
public void initService(ServiceLocator locator)
Deprecated.Description copied from interface:Service
Provides the opportunity to initialize this service and to acquire other services for its operation from the locator. A service must not save the reference to the provided service locator.- Specified by:
initService
in interfaceService
- Parameters:
locator
- The service locator, must not benull
.
-
newInstance
public SyncContext newInstance(RepositorySystemSession session, boolean shared)
Deprecated.Description copied from interface:SyncContextFactory
Creates a new synchronization context.- Specified by:
newInstance
in interfaceSyncContextFactory
- Parameters:
session
- The repository session during which the context will be used, must not benull
.shared
- A flag indicating whether access to the artifacts/metadata associated with the new context can be shared among concurrent readers or whether access needs to be exclusive to the calling thread.- Returns:
- The synchronization context, never
null
. - See Also:
RepositorySystem.newSyncContext(RepositorySystemSession, boolean)
-
-