public class ConfigurableHashStrategy extends AbstractConfigurableSingleStrategy<HashStrategy,HashStrategyProvider> implements HashStrategy
HashStrategy implementation associated with an alias read from properties file.| Modifier and Type | Field and Description |
|---|---|
static String |
KEY
Property name to specify alias.
|
| Constructor and Description |
|---|
ConfigurableHashStrategy() |
| Modifier and Type | Method and Description |
|---|---|
protected HashStrategy |
getDefaultStrategy() |
String |
getHash(InputStream inputStream) |
protected Class<HashStrategyProvider> |
getProviderClass() |
protected Map<String,HashStrategy> |
getStrategies(HashStrategyProvider provider) |
protected String |
getStrategyKey() |
getConfiguredStrategycopyAll, getAvailableAliases, getAvailableStrategies, getConfiguredValue, getProviderFinder, getStrategyForAlias, newProperties, overrideDefaultStrategyMap, setPropertiespublic static final String KEY
public String getHash(InputStream inputStream) throws IOException
getHash in interface HashBuilderinputStream - to digest.IOException - if there was an error during reading the stream content.protected String getStrategyKey()
getStrategyKey in class AbstractConfigurableStrategySupport<HashStrategy,HashStrategyProvider>protected HashStrategy getDefaultStrategy()
getDefaultStrategy in class AbstractConfigurableSingleStrategy<HashStrategy,HashStrategyProvider>protected Map<String,HashStrategy> getStrategies(HashStrategyProvider provider)
getStrategies in class AbstractConfigurableStrategySupport<HashStrategy,HashStrategyProvider>provider - the instance responsible for strategy lookup.protected Class<HashStrategyProvider> getProviderClass()
getProviderClass in class AbstractConfigurableStrategySupport<HashStrategy,HashStrategyProvider>ParameterizedType to compute the class. Override it to
support anonymous classes which do not play well with ParameterizedType's.Copyright © 2008-2013. All Rights Reserved.