Package io.micronaut.core.convert
Interface ImmutableArgumentConversionContext<T>
- Type Parameters:
T- The generic type
- All Superinterfaces:
AnnotationMetadataProvider,AnnotationSource,ArgumentConversionContext<T>,ConversionContext,ErrorsContext,Iterable<ConversionError>,TypeVariableResolver
Immutable variant of
ArgumentConversionContext that can be used as a constant
in cases where conversion error handling and rejection is not required.- Since:
- 3.2.7
- Author:
- graemerocher
-
Field Summary
Fields inherited from interface io.micronaut.core.annotation.AnnotationSource
EMPTYFields inherited from interface io.micronaut.core.convert.ConversionContext
BOOLEAN, DEFAULT, INT, LIST_OF_STRING, LONG, MAP, STRING -
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic <T> ImmutableArgumentConversionContext<T>Create a new simpleConversionContextfor the given generic type variables.static <T> ImmutableArgumentConversionContext<T>Create a simpleConversionContextfor the given generic type variables.Methods inherited from interface io.micronaut.core.annotation.AnnotationMetadataProvider
findAnnotation, findAnnotation, findDeclaredAnnotation, findDeclaredAnnotation, getTargetAnnotationMetadata, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeAll, synthesizeAnnotationsByType, synthesizeDeclared, synthesizeDeclared, synthesizeDeclaredAnnotationsByTypeMethods inherited from interface io.micronaut.core.annotation.AnnotationSource
getAnnotation, getAnnotation, getDeclaredAnnotation, getDeclaredAnnotation, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeDeclaredMethods inherited from interface io.micronaut.core.convert.ArgumentConversionContext
getAnnotationMetadata, getArgument, getTypeParameters, getTypeVariables, withMethods inherited from interface io.micronaut.core.convert.ConversionContext
getCharset, getLocale, withMethods inherited from interface io.micronaut.core.convert.ErrorsContext
getLastError, hasErrors, iterator, reject, rejectMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface io.micronaut.core.type.TypeVariableResolver
getFirstTypeVariable, getTypeVariable
-
Method Details
-
of
Create a new simpleConversionContextfor the given generic type variables.NOTE: The instance returned by this method is NOT thread safe and should be shared via static state or between threads.
- Type Parameters:
T- type Generic- Parameters:
argument- The argument- Returns:
- The conversion context
- Since:
- 3.2.7
-
of
Create a simpleConversionContextfor the given generic type variables.NOTE: The instance returned by this method is NOT thread safe and should be shared via static state or between threads.
- Type Parameters:
T- type Generic- Parameters:
type- The argument- Returns:
- The conversion context
- Since:
- 3.2.7
-