Package io.openliberty.mcp.annotations
Interface DefaultValueConverter<TYPE>
- Type Parameters:
TYPE- the argument type
public interface DefaultValueConverter<TYPE>
Converts default values from
String to an argument object of a specific type.
Converters are discovered automatically
Implementations must declare a public no-args constructor.
An implementation may be annotated with Priority. If multiple converters of the same priority exist for a specific
argument type, then only the converter with highest priority is registered.
- See Also:
-
ToolArg#defaultValue()
-
Method Summary
-
Method Details
-
convert
- Parameters:
defaultValue- (must not benull)- Returns:
- the converted object
-