@Singleton @Named public class DefaultChecksumAlgorithmFactorySelector extends Object implements ChecksumAlgorithmFactorySelector
Constructor and Description |
---|
DefaultChecksumAlgorithmFactorySelector()
Deprecated.
|
DefaultChecksumAlgorithmFactorySelector(Map<String,ChecksumAlgorithmFactory> factories) |
Modifier and Type | Method and Description |
---|---|
List<ChecksumAlgorithmFactory> |
getChecksumAlgorithmFactories()
Returns a collection of supported algorithms.
|
ChecksumAlgorithmFactory |
select(String algorithmName)
Returns factory for given algorithm name, or throws if algorithm not supported.
|
@Deprecated public DefaultChecksumAlgorithmFactorySelector()
@Inject public DefaultChecksumAlgorithmFactorySelector(Map<String,ChecksumAlgorithmFactory> factories)
public ChecksumAlgorithmFactory select(String algorithmName)
ChecksumAlgorithmFactorySelector
select
in interface ChecksumAlgorithmFactorySelector
public List<ChecksumAlgorithmFactory> getChecksumAlgorithmFactories()
ChecksumAlgorithmFactorySelector
RepositoryLayout.getChecksumAlgorithmFactories()
(in fact, is super set
of it).getChecksumAlgorithmFactories
in interface ChecksumAlgorithmFactorySelector
Copyright © 2010–2022 The Apache Software Foundation. All rights reserved.