Package io.micronaut.core.convert
Interface ImmutableArgumentConversionContext<T>
-
- Type Parameters:
T- The generic type
- All Superinterfaces:
AnnotationMetadataProvider,AnnotationSource,ArgumentConversionContext<T>,ConversionContext,ErrorsContext,java.lang.Iterable<ConversionError>,TypeVariableResolver
public interface ImmutableArgumentConversionContext<T> extends ArgumentConversionContext<T>
Immutable variant ofArgumentConversionContextthat can be used as a constant in cases where conversion error handling and rejection is not required.- Since:
- 3.2.7
-
-
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
Static Methods Modifier and Type Method Description static <T> ImmutableArgumentConversionContext<T>of(Argument<T> argument)Create a new simpleConversionContextfor the given generic type variables.static <T> ImmutableArgumentConversionContext<T>of(java.lang.Class<T> type)Create a simpleConversionContextfor the given generic type variables.-
Methods inherited from interface io.micronaut.core.annotation.AnnotationMetadataProvider
findAnnotation, findAnnotation, findDeclaredAnnotation, findDeclaredAnnotation, 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 io.micronaut.core.type.TypeVariableResolver
getFirstTypeVariable, getTypeVariable
-
-
-
-
Method Detail
-
of
static <T> ImmutableArgumentConversionContext<T> of(Argument<T> argument)
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
static <T> ImmutableArgumentConversionContext<T> of(java.lang.Class<T> type)
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
-
-