public class ServiceFinder extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ServiceFinder.Module
The module containing the services.
|
Constructor and Description |
---|
ServiceFinder(String serviceName) |
Modifier and Type | Method and Description |
---|---|
void |
addSearchPath(Path path)
Adds a search (directory) path.
|
void |
addSearchPaths(Path... paths)
Adds search (directory) paths.
|
void |
addSearchPathsFromPreferences(String key)
Adds search paths from user preferences.
|
void |
addSearchPathsFromPreferences(String configName,
String key)
Adds search paths from user preferences.
|
List<ServiceFinder.Module> |
findServices()
Finds services based on the current search path configuration.
|
void |
searchClassPath(boolean searchClassPath) |
public ServiceFinder(String serviceName)
public void addSearchPath(Path path)
path
- A search path.public void addSearchPaths(Path... paths)
paths
- The search paths.public void addSearchPathsFromPreferences(String configName, String key)
configName
- The configuration name.key
- The user preferences key.public void addSearchPathsFromPreferences(String key)
key
- The user preferences key.public void searchClassPath(boolean searchClassPath)
searchClassPath
- true
, if the Java classpath shall be searched as wellpublic List<ServiceFinder.Module> findServices()
Copyright © 2014–2015 European Space Agency (ESA). All rights reserved.