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
EMPTY
Fields inherited from interface io.micronaut.core.convert.ConversionContext
BOOLEAN, DEFAULT, INT, LIST_OF_STRING, LONG, MAP, STRING
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> ImmutableArgumentConversionContext<T>
Create a new simpleConversionContext
for the given generic type variables.static <T> ImmutableArgumentConversionContext<T>
Create a simpleConversionContext
for 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, synthesizeDeclaredAnnotationsByType
Methods inherited from interface io.micronaut.core.annotation.AnnotationSource
getAnnotation, getAnnotation, getDeclaredAnnotation, getDeclaredAnnotation, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeDeclared
Methods inherited from interface io.micronaut.core.convert.ArgumentConversionContext
getAnnotationMetadata, getArgument, getTypeParameters, getTypeVariables, with
Methods inherited from interface io.micronaut.core.convert.ConversionContext
getCharset, getLocale, with
Methods inherited from interface io.micronaut.core.convert.ErrorsContext
getLastError, hasErrors, iterator, reject, reject
Methods inherited from interface java.lang.Iterable
forEach, spliterator
Methods inherited from interface io.micronaut.core.type.TypeVariableResolver
getFirstTypeVariable, getTypeVariable
-
Method Details
-
of
Create a new simpleConversionContext
for 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 simpleConversionContext
for 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
-