Package org.tomitribe.crest.contexts
Class EnvDefaultsContext
- java.lang.Object
-
- org.tomitribe.crest.contexts.EnvDefaultsContext
-
- All Implemented Interfaces:
DefaultsContext
public class EnvDefaultsContext extends java.lang.Object implements DefaultsContext
-
-
Constructor Summary
Constructors Constructor Description EnvDefaultsContext()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringfind(Target cmd, java.lang.reflect.Method commandMethod, java.lang.String key)Implementations of DefaultsContext need to implement this method to convert an expression inside ${...} type substitutions to String values which will replace the substitution expression.
-
-
-
Method Detail
-
find
public java.lang.String find(Target cmd, java.lang.reflect.Method commandMethod, java.lang.String key)
Description copied from interface:DefaultsContextImplementations of DefaultsContext need to implement this method to convert an expression inside ${...} type substitutions to String values which will replace the substitution expression.- Specified by:
findin interfaceDefaultsContext- Parameters:
cmd- The command classcommandMethod- the command methodkey- the ... in the ${...} expression- Returns:
- the value to replace key with. Null is equivalent to the empty string.
-
-