@Singleton @Named @Deprecated public final class DefaultSyncContextFactory extends Object implements SyncContextFactory, Service
SyncContextFactory implementation that delegates to proper
SyncContextFactory implementation. Used in Guice/SISU where we cannot bind same instance to two keys,
this component "bridges" from deprecated to current.| Constructor and Description |
|---|
DefaultSyncContextFactory()
Deprecated.
|
DefaultSyncContextFactory(SyncContextFactory delegate)
Deprecated.
|
| Modifier and Type | Method and 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.
|
public DefaultSyncContextFactory()
@Inject public DefaultSyncContextFactory(SyncContextFactory delegate)
public void initService(ServiceLocator locator)
ServiceinitService in interface Servicelocator - The service locator, must not be null.public SyncContext newInstance(RepositorySystemSession session, boolean shared)
SyncContextFactorynewInstance in interface SyncContextFactorysession - The repository session during which the context will be used, must not be null.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.null.RepositorySystem.newSyncContext(RepositorySystemSession, boolean)Copyright © 2010–2022 The Apache Software Foundation. All rights reserved.