de.intarsys.tools.locator.LocatorBasedLookup Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of isrt Show documentation
Show all versions of isrt Show documentation
The basic runtime tools and interfaces for intarsys components.
package de.intarsys.tools.locator;
import java.io.FileNotFoundException;
import java.io.IOException;
public class LocatorBasedLookup extends AbstractLocatorLookup {
final private ILocator locator;
public LocatorBasedLookup(ILocator locator) {
super();
this.locator = locator;
}
public ILocator createLocator(String location) throws IOException {
ILocator lookup = getLocator().getChild(location);
if (lookup.exists()) {
return lookup;
}
throw new FileNotFoundException("locator '" + location + "' not found");
}
public ILocator getLocator() {
return locator;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy