Package de.intarsys.tools.locator
Class DelegatingLocatorLookup
- java.lang.Object
-
- de.intarsys.tools.locator.AbstractLocatorLookup
-
- de.intarsys.tools.locator.DelegatingLocatorLookup
-
- All Implemented Interfaces:
ILocatorFactory
- Direct Known Subclasses:
SearchPathLocatorLookup
public class DelegatingLocatorLookup extends AbstractLocatorLookup
-
-
Constructor Summary
Constructors Constructor Description DelegatingLocatorLookup()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
addLocatorFactory(ILocatorFactory factory)
void
clear()
ILocator
createLocator(java.lang.String location)
Create aILocator
object.java.util.List<ILocatorFactory>
getLocatorFactories()
boolean
removeLocatorFactory(ILocatorFactory factory)
-
-
-
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 aILocator
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)
-
-