Interface IStreamLocatorFactory

All Superinterfaces:
IStreamLocator

public interface IStreamLocatorFactory extends IStreamLocator
A special type of IStreamLocator that allows registration and delegation to other IStreamLocators
  • Method Details

    • registerLocator

      IStreamLocator registerLocator(IStreamLocator streamLocator) throws IOException
      register a new locator
      Parameters:
      streamLocator -
      Returns:
      the registered locator
      Throws:
      IOException
    • registerLocator

      IStreamLocator registerLocator(String className, String protocol, String root) throws IOException
      register a new locator
      Parameters:
      className -
      protocol -
      root -
      Returns:
      Throws:
      IOException
    • getLocatorForProtocol

      IStreamLocator getLocatorForProtocol(String location)
      Based upon the location find the correct locator
      Parameters:
      location -
      Returns:
    • getLocators

      Map<String,IStreamLocator> getLocators()
      Returns map of registered stream locators
      Returns:
    • unregisterLocator

      void unregisterLocator(IStreamLocator streamLocator)
      Unregisters given locator
      Parameters:
      streamLocator - the locator to unregister
    • getDefaultLocator

      IStreamLocator getDefaultLocator()
      Returns default locator specified for the current thread or globally
      Returns:
      never null
      See Also:
    • setDefaultLocator

      void setDefaultLocator(IStreamLocator streamLocator)
      Sets the given locator as a default locator for the current thread only.
      Parameters:
      streamLocator - default locator