Package de.intarsys.tools.locator
Class FileLocatorFactory
java.lang.Object
de.intarsys.tools.locator.FileLocatorFactory
- All Implemented Interfaces:
ILocatorFactory
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
FieldsModifier and TypeFieldDescriptionstatic final String
The separator character for the definition of multiple search paths -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateLocator
(String path) The file locator factory supports looking up resources in multiple paths.boolean
void
setSearchPathDefinition
(String searchPath) void
setSearchPaths
(List searchPaths) void
setSynchSynchronous
(boolean synchSynchronous)
-
Field Details
-
PATH_SEPARATOR
The separator character for the definition of multiple search paths- See Also:
-
-
Constructor Details
-
FileLocatorFactory
public FileLocatorFactory()Create a new factory.
-
-
Method Details
-
createLocator
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.- Specified by:
createLocator
in interfaceILocatorFactory
- Parameters:
path
- The fully qualified location definition.- Returns:
- The ILocator object created from the
location
. - See Also:
-
getSearchPathDefinition
-
getSearchPaths
-
isSynchSynchronous
public boolean isSynchSynchronous() -
setSearchPathDefinition
-
setSearchPaths
-
setSynchSynchronous
public void setSynchSynchronous(boolean synchSynchronous)
-