public interface ConfigParameterFactory
ConfigParameter
class,
implementations of this class are often required to do considerably
more work in the context of the supplied execution
Environment
, including working out
a parameter name based on variants of the key name including
relevant layer/zone suffixes, configuring the parameters with
suitable defaults, etc.
This interface is used extensively by AbstractPlot2Task
.
This looks like it should be marked as a FunctionalInterface
,
and the compiler does permit that, but I can't figure out how to write
a lambda expression corresponding to a Single Abstract Method
like the one here which is parameterised by a type T, so there
doesn't seem much point. I don't think it's possible;
the Java Language Specification (JLS SE8, Sec 15.27) says
"Lambda expressions cannot declare type parameters".
Modifier and Type | Method and Description |
---|---|
<T> ConfigParameter<T> |
getParameter(Environment env,
ConfigKey<T> key)
Produces a parameter to find the value for a given config key.
|
<T> ConfigParameter<T> getParameter(Environment env, ConfigKey<T> key) throws TaskException
env
- execution environmentkey
- config keykey
TaskException
Copyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.