public class ConfigurableLocatorFactory extends AbstractConfigurableMultipleStrategy<UriLocator,LocatorProvider> implements UriLocatorFactory
ProcessorsFactory implementation which is easy to configure using a Properties object.| Modifier and Type | Field and Description |
|---|---|
static String |
PARAM_URI_LOCATORS
Name of init param used to specify uri locators.
|
| Constructor and Description |
|---|
ConfigurableLocatorFactory() |
| Modifier and Type | Method and Description |
|---|---|
UriLocator |
getInstance(String uri) |
protected Class<LocatorProvider> |
getProviderClass() |
protected Map<String,UriLocator> |
getStrategies(LocatorProvider provider) |
protected String |
getStrategyKey() |
InputStream |
locate(String uri)
Locates an InputStream for the given uri.
|
createItemsAsString, getConfiguredStrategiescopyAll, getAvailableAliases, getAvailableStrategies, getConfiguredValue, getProviderFinder, getStrategyForAlias, newProperties, overrideDefaultStrategyMap, setPropertiespublic static final String PARAM_URI_LOCATORS
protected String getStrategyKey()
getStrategyKey in class AbstractConfigurableStrategySupport<UriLocator,LocatorProvider>protected Map<String,UriLocator> getStrategies(LocatorProvider provider)
getStrategies in class AbstractConfigurableStrategySupport<UriLocator,LocatorProvider>provider - the instance responsible for strategy lookup.public InputStream locate(String uri) throws IOException
locate in interface UriLocatorFactoryuri - to locate.InputStream of the resource.IOException - if uri is invalid or resource couldn't be located.public UriLocator getInstance(String uri)
getInstance in interface UriLocatorFactoryuri - to handle by the locator.UriLocator which is capable of handling provided uri. Returns null if no locator
found.protected Class<LocatorProvider> getProviderClass()
getProviderClass in class AbstractConfigurableStrategySupport<UriLocator,LocatorProvider>ParameterizedType to compute the class. Override it to
support anonymous classes which do not play well with ParameterizedType's.Copyright © 2008-2014. All Rights Reserved.