de.intarsys.tools.locator
Class FileLocatorFactory
java.lang.Object
de.intarsys.tools.locator.CommonLocatorFactory
de.intarsys.tools.locator.FileLocatorFactory
- All Implemented Interfaces:
- ILocatorFactory
public class FileLocatorFactory
- extends CommonLocatorFactory
The factory for FileLocator objects.
FileLocator instances are created either using an absolute path name
or are looked up relative to the factorys search path. Multiple search paths
may be defined.
|
Field Summary |
static String |
PATH_SEPARATOR
The separator character for the definition of multiple search paths |
PATH_SEPARATOR
public static final String PATH_SEPARATOR
- The separator character for the definition of multiple search paths
- See Also:
- Constant Field Values
FileLocatorFactory
public FileLocatorFactory()
- Create a new factory.
createLocator
public ILocator createLocator(String path)
- The file locator factory supports looking up resources in multiple paths.
To preserve compatibility to ILocatorFactory, the last locator created is
returned if no match is found. This is a valid locator, even so no
existing physical resource is designated.
- Parameters:
path - A location definition.
- Returns:
- The ILocator object created from the
location. - See Also:
ILocatorFactory.createLocator(java.lang.String)
getSearchPathDefinition
public String getSearchPathDefinition()
getSearchPaths
public List getSearchPaths()
isSynchSynchronous
public boolean isSynchSynchronous()
setSearchPathDefinition
public void setSearchPathDefinition(String searchPath)
setSearchPaths
public void setSearchPaths(List searchPaths)
setSynchSynchronous
public void setSynchSynchronous(boolean synchSynchronous)
Copyright © 2012 intarsys consulting GmbH. All Rights Reserved.