Package org.eclipse.aether.internal.impl
Class TrackingFileManagerSupplier
- java.lang.Object
-
- org.eclipse.aether.internal.impl.TrackingFileManagerSupplier
-
- All Implemented Interfaces:
java.util.function.Supplier<TrackingFileManager>
@Singleton @Named public class TrackingFileManagerSupplier extends java.lang.Object implements java.util.function.Supplier<TrackingFileManager>
Supplies selected instance ofTrackingFileManagerimplementation.- Since:
- 2.0.18
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCONFIG_PROP_TRACKING_FILE_MANAGER_NAMEName of the tracking file manager to use.static java.lang.StringCONFIG_PROPS_PREFIXstatic java.lang.StringDEFAULT_TRACKING_FILE_MANAGER_NAME
-
Constructor Summary
Constructors Constructor Description TrackingFileManagerSupplier()Default constructor, to be used in tests; provides "legacy" tracking file manager only.TrackingFileManagerSupplier(NamedLockFactorySelector selector)Constructor to be used in production.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TrackingFileManagerget()
-
-
-
Field Detail
-
CONFIG_PROPS_PREFIX
public static final java.lang.String CONFIG_PROPS_PREFIX
- See Also:
- Constant Field Values
-
CONFIG_PROP_TRACKING_FILE_MANAGER_NAME
public static final java.lang.String CONFIG_PROP_TRACKING_FILE_MANAGER_NAME
Name of the tracking file manager to use. Supported values are "namedLocks" and "legacy". The latter should be used if it is known, that local repository is simultaneously accessed by Maven 3.10+ and older Maven versions. This decision happens early, during boot of the system, hence system properties can be used only as configuration source.- See Also:
- Constant Field Values
-
DEFAULT_TRACKING_FILE_MANAGER_NAME
public static final java.lang.String DEFAULT_TRACKING_FILE_MANAGER_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
TrackingFileManagerSupplier
public TrackingFileManagerSupplier()
Default constructor, to be used in tests; provides "legacy" tracking file manager only.
-
TrackingFileManagerSupplier
@Inject public TrackingFileManagerSupplier(NamedLockFactorySelector selector)
Constructor to be used in production.
-
-
Method Detail
-
get
public TrackingFileManager get()
- Specified by:
getin interfacejava.util.function.Supplier<TrackingFileManager>
-
-