@Singleton @Named public final class DefaultSyncContextFactory extends Object implements SyncContextFactory, Service
SyncContextFactory
implementation that uses named locks.Constructor and Description |
---|
DefaultSyncContextFactory() |
DefaultSyncContextFactory(NamedLockFactorySelector selector)
Constructor used with DI, where factories are injected and selected based on key.
|
Modifier and Type | Method and Description |
---|---|
void |
initService(ServiceLocator locator) |
SyncContext |
newInstance(RepositorySystemSession session,
boolean shared) |
void |
shutdown() |
@Inject public DefaultSyncContextFactory(NamedLockFactorySelector selector)
public DefaultSyncContextFactory()
public void initService(ServiceLocator locator)
initService
in interface Service
public SyncContext newInstance(RepositorySystemSession session, boolean shared)
newInstance
in interface SyncContextFactory
@PreDestroy public void shutdown()
Copyright © 2010–2021 The Apache Software Foundation. All rights reserved.