Package org.eclipse.aether.internal.impl
Class DefaultSyncContextFactory
java.lang.Object
org.eclipse.aether.internal.impl.DefaultSyncContextFactory
- All Implemented Interfaces:
SyncContextFactory
A factory to create synchronization contexts. This default implementation does not provide any real
synchronization but merely completes the repository system.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static class
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnewInstance
(RepositorySystemSession session, boolean shared) Creates a new synchronization context.
-
Constructor Details
-
DefaultSyncContextFactory
public DefaultSyncContextFactory()
-
-
Method Details
-
newInstance
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:
-