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 booleanaddLocatorFactory(ILocatorFactory factory)voidclear()ILocatorcreateLocator(java.lang.String location)Create aILocatorobject.java.util.List<ILocatorFactory>getLocatorFactories()booleanremoveLocatorFactory(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:ILocatorFactoryCreate aILocatorobject.pathmay 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)
-
-