de.intarsys.tools.locator.AbsoluteFileLocatorLookup 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.File;
import java.io.FileNotFoundException;
import java.io.IOException;
public class AbsoluteFileLocatorLookup extends AbstractLocatorLookup {
public ILocator createLocator(String location) throws IOException {
File file = new File(location);
if (file.exists()) {
return new FileLocator(file);
}
throw new FileNotFoundException("locator '" + location + "' not found");
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy