public interface IStreamLocatorFactory extends IStreamLocator
IStreamLocator
that allows registration and delegation to other IStreamLocator
sModifier and Type | Method and Description |
---|---|
IStreamLocator |
getDefaultLocator()
Returns default locator specified for the current thread or globally
|
IStreamLocator |
getLocatorForProtocol(String location)
Based upon the location find the correct locator
|
Map<String,IStreamLocator> |
getLocators()
Returns map of registered stream locators
|
IStreamLocator |
registerLocator(IStreamLocator streamLocator)
register a new locator
|
IStreamLocator |
registerLocator(String className,
String protocol,
String root)
register a new locator
|
void |
setDefaultLocator(IStreamLocator streamLocator)
Sets the given locator as a default locator for the current thread only.
|
void |
unregisterLocator(IStreamLocator streamLocator)
Unregisters given locator
|
getLocationStream, getPersistentStream, getProtocol, getRealLocation, init
IStreamLocator registerLocator(IStreamLocator streamLocator) throws IOException
streamLocator
- IOException
IStreamLocator registerLocator(String className, String protocol, String root) throws IOException
className
- protocol
- root
- IOException
IStreamLocator getLocatorForProtocol(String location)
location
- Map<String,IStreamLocator> getLocators()
void unregisterLocator(IStreamLocator streamLocator)
streamLocator
- the locator to unregisterIStreamLocator getDefaultLocator()
setDefaultLocator(IStreamLocator)
void setDefaultLocator(IStreamLocator streamLocator)
streamLocator
- default locator