@groovy.transform.CompileStatic @Deprecated class ResolverFactoryRegistry extends Object
A registry of factories for locating executables.
| Constructor and description |
|---|
ResolverFactoryRegistry
(Project temporaryProjectReference)Create a registry of factories for locating executables |
ResolverFactoryRegistry
(org.ysb33r.grolifant.api.core.ProjectOperations projectOperations)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. |
|
org.ysb33r.grolifant.api.v4.exec.ResolvableExecutable |
getResolvableExecutable(java.util.Map<String, Object> exe)Use a key-value approach to finding the exe. |
|
org.ysb33r.grolifant.api.v4.exec.ResolvableExecutableType |
getResolvableExecutableType(java.util.Map<String, Object> exe)Lazy-evaluated description of the exe |
|
void |
registerExecutableKeyActions(String key, org.ysb33r.grolifant.api.v4.exec.ResolvedExecutableFactory factory)Register more ways of locating executables. |
|
void |
registerExecutableKeyActions(org.ysb33r.grolifant.api.v4.exec.NamedResolvedExecutableFactory factory)Register more ways of locating executables. |
Create a registry of factories for locating executables
temporaryProjectReference - Associated project for resolving path relative to the project directory.
This instance is maintained as a reference, so this class is safe for usage with configuration cache.Create a registry of factories for locating executables
projectOperations - Associated project for resolving path relative to the project directory.
This instance is maintained as a reference, so this class is safe for usage with configuration cache.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)Lazy-evaluated description of the exe
exe - A map that contains items like version : '1.2.3' or search : 'doxygen'null if not configured.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.