org.eclipse.aether.internal.impl

## Class DefaultSyncContextFactory

- java.lang.Object
- - org.eclipse.aether.internal.impl.DefaultSyncContextFactory

- All Implemented Interfaces:
    SyncContextFactory

      @Named
      @Component(role=SyncContextFactory.class)
      public class DefaultSyncContextFactory
      extends Object
      implements SyncContextFactory

  A factory to create synchronization contexts. This default implementation actually does not provide any real synchronization but merely completes the repository system.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `DefaultSyncContextFactory()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `SyncContext` | `newInstance(RepositorySystemSession session, boolean shared)` Creates a new synchronization context.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### DefaultSyncContextFactory

          public DefaultSyncContextFactory()

  - ### Method Detail

    - #### newInstance

          public SyncContext newInstance(RepositorySystemSession session,
                                boolean shared)

      Description copied from interface: `SyncContextFactory`
      Creates a new synchronization context.
      Specified by:
        `newInstance` in interface `SyncContextFactory`
      Parameters:
        `session` - 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.
      Returns:
        The synchronization context, never `null`.

Copyright © 2010-2013 The Eclipse Foundation. All Rights Reserved.