Package io.micronaut.core.bind
Interface BeanPropertyBinder
- All Superinterfaces:
ArgumentBinder<Object,
Map<CharSequence, ? super Object>>
An interface that provides the ability to bind Maps and Java bean properties
.This class is designed specifically for binding of String based property data such as Form submissions and dynamic binding of Java Properties files and should not be used beyond these two use cases.
- Since:
- 1.0
- Author:
- Graeme Rocher
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.micronaut.core.bind.ArgumentBinder
ArgumentBinder.BindingResult<T>
-
Method Summary
Modifier and TypeMethodDescriptiondefault <T2> T2
bind
(Class<T2> type, Map<? extends CharSequence, Object> source) Bind a new instance of the given type from the given source.<T2> T2
Bind a new instance of the given type from the given source.default <T2> T2
bind
(T2 object, ArgumentConversionContext<T2> context, Map<? extends CharSequence, Object> source) Bind an existing instance of the given type from the given source.<T2> T2
bind
(T2 object, ArgumentConversionContext<T2> context, Set<? extends Map.Entry<? extends CharSequence, Object>> source) Bind an existing instance of the given type from the given source.default <T2> T2
Bind an existing instance of the given type from the given source.default <T2> T2
bind
(T2 object, Map<? extends CharSequence, Object> source) Bind an existing instance of the given type from the given source.<T2> T2
bind
(T2 object, Set<? extends Map.Entry<? extends CharSequence, Object>> source) Bind an existing instance of the given type from the given source.Methods inherited from interface io.micronaut.core.bind.ArgumentBinder
bind
-
Method Details
-
bind
<T2> T2 bind(Class<T2> type, Set<? extends Map.Entry<? extends CharSequence, Object>> source) throws ConversionErrorExceptionBind a new instance of the given type from the given source.- Type Parameters:
T2
- The generic type- Parameters:
type
- The typesource
- The source- Returns:
- The bound instance
- Throws:
ConversionErrorException
- if the object cannot be bound
-
bind
<T2> T2 bind(T2 object, ArgumentConversionContext<T2> context, Set<? extends Map.Entry<? extends CharSequence, Object>> source) Bind an existing instance of the given type from the given source.- Type Parameters:
T2
- The generic type- Parameters:
object
- The beancontext
- The conversion contextsource
- The source- Returns:
- The bound instance
-
bind
<T2> T2 bind(T2 object, Set<? extends Map.Entry<? extends CharSequence, Object>> source) throws ConversionErrorExceptionBind an existing instance of the given type from the given source.- Type Parameters:
T2
- The generic type- Parameters:
object
- The beansource
- The source- Returns:
- The bound instance
- Throws:
ConversionErrorException
- if the object cannot be bound
-
bind
default <T2> T2 bind(Class<T2> type, Map<? extends CharSequence, Object> source) throws ConversionErrorExceptionBind a new instance of the given type from the given source.- Type Parameters:
T2
- The generic type- Parameters:
type
- The typesource
- The source- Returns:
- The bound instance
- Throws:
ConversionErrorException
- if the object cannot be bound
-
bind
default <T2> T2 bind(T2 object, ArgumentConversionContext<T2> context, Map<? extends CharSequence, Object> source) Bind an existing instance of the given type from the given source.- Type Parameters:
T2
- The generic type- Parameters:
object
- The beancontext
- The conversion contextsource
- The source- Returns:
- The bound instance
-
bind
default <T2> T2 bind(T2 object, Map<? extends CharSequence, Object> source) throws ConversionErrorExceptionBind an existing instance of the given type from the given source.- Type Parameters:
T2
- The generic type- Parameters:
object
- The beansource
- The source- Returns:
- The bound instance
- Throws:
ConversionErrorException
- if the object cannot be bound
-
bind
Bind an existing instance of the given type from the given source.- Type Parameters:
T2
- The generic type- Parameters:
object
- The beansource
- The source- Returns:
- The bound instance
- Throws:
ConversionErrorException
- if the object cannot be bound
-