Class DefaultSyncContextFactory
java.lang.Object
org.eclipse.aether.internal.impl.synccontext.DefaultSyncContextFactory
- All Implemented Interfaces:
 SyncContextFactory
@Singleton
@Named
public final class DefaultSyncContextFactory
extends Object
implements SyncContextFactory
Default 
SyncContextFactory implementation that uses named locks.
 
 The implementation relies fully on NamedLockFactoryAdapterFactory and 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
ConstructorsConstructorDescriptionDefaultSyncContextFactory(NamedLockFactoryAdapterFactory namedLockFactoryAdapterFactory) Constructor used with DI, where factories are injected and selected based on key. - 
Method Summary
Modifier and TypeMethodDescriptionnewInstance(RepositorySystemSession session, boolean shared) Creates a new synchronization context. 
- 
Constructor Details
- 
DefaultSyncContextFactory
@Inject public DefaultSyncContextFactory(NamedLockFactoryAdapterFactory namedLockFactoryAdapterFactory) Constructor used with DI, where factories are injected and selected based on key. 
 - 
 - 
Method Details
- 
newInstance
Description copied from interface:SyncContextFactoryCreates a new synchronization context.- Specified by:
 newInstancein 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:
 
 
 -