de.intarsys.tools.locator
Class DelegatingLocatorLookup

java.lang.Object
  extended by de.intarsys.tools.locator.AbstractLocatorLookup
      extended by de.intarsys.tools.locator.DelegatingLocatorLookup
All Implemented Interfaces:
ILocatorFactory
Direct Known Subclasses:
SearchPathLocatorLookup

public class DelegatingLocatorLookup
extends AbstractLocatorLookup


Constructor Summary
DelegatingLocatorLookup()
           
 
Method Summary
 boolean addLocatorFactory(ILocatorFactory factory)
           
 void clear()
           
 ILocator createLocator(java.lang.String location)
          Create a ILocator object.
 java.util.List<ILocatorFactory> getLocatorFactories()
           
 boolean removeLocatorFactory(ILocatorFactory factory)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DelegatingLocatorLookup

public DelegatingLocatorLookup()
Method Detail

addLocatorFactory

public boolean addLocatorFactory(ILocatorFactory factory)

createLocator

public ILocator createLocator(java.lang.String location)
                       throws java.io.IOException
Description copied from interface: ILocatorFactory
Create a ILocator object.

path may for example define a file in the file system.

Parameters:
location - The fully qualified location definition.
Returns:
The ILocator object created from the location.
Throws:
java.io.IOException

clear

public void clear()

getLocatorFactories

public java.util.List<ILocatorFactory> getLocatorFactories()

removeLocatorFactory

public boolean removeLocatorFactory(ILocatorFactory factory)