@groovy.transform.CompileStatic class ResolverFactoryRegistry extends Object
A registry of factories for locating executables.
| Constructor and description |
|---|
ResolverFactoryRegistry
(Project project)Create a registry of factories for locating executables |
| Type Params | Return Type | Name and description |
|---|---|---|
|
String |
findValidKey(java.util.Map<String, Object> exe)Look for exactly one valid key in the supplied map. |
|
ResolvableExecutable |
getResolvableExecutable(java.util.Map<String, Object> exe)Use a key-value approach to finding the exe. |
|
ResolvableExecutableType |
getResolvableExecutableType(java.util.Map<String, Object> exe) |
|
void |
registerExecutableKeyActions(String key, ResolvedExecutableFactory factory)Register more ways of locating executables. |
|
void |
registerExecutableKeyActions(NamedResolvedExecutableFactory factory)Register more ways of locating executables. |
Create a registry of factories for locating executables
project - Associated project for resolving path relative to the project directory.Look for exactly one valid key in the supplied map.
exe - List of keys to search. Use a key-value approach to finding the exe.
In the default implementation only path and search are supported as a declarative keys.
Implementations should use registerExecutableKeyActions to add more keys.
exe - Key-value setting exe (with optional extra keys)Register more ways of locating executables.
key - The key that is used to indicate the resolver methodfactory - A factory that will be called be the value associated with the key.Register more ways of locating executables.
factory - A factory that will be called be the value associated with the key.