Package | Description |
---|---|
org.nuiton.util.beans |
Packages for all stuff of bean transformations (binder, and others...).
|
Modifier and Type | Field and Description |
---|---|
protected Map<String,Binder<?,?>> |
Binder.BinderModel.binders
mapping of extra binders to use to copy properties
|
Modifier and Type | Method and Description |
---|---|
static <S,T,B extends Binder<S,T>> |
BinderFactory.newBinder(Binder.BinderModel<S,T> model,
Class<B> binderType)
Given a
model and a binderType , instanciate a new binder
and returns it. |
static <S,T,B extends Binder<S,T>> |
BinderFactory.newBinder(Class<S> sourceType,
Class<T> targetType,
String contextName,
Class<B> binderType)
Gets the registred binder given his types and his context's name.
|
protected static <S,T,B extends Binder<S,T>> |
BinderFactory.newBinder0(Class<S> sourceType,
Class<T> targetType,
String contextName,
Class<B> binderType)
Instanciate a new binder given his types and his context's name.
|
<B extends Binder<S,T>> |
BinderModelBuilder.toBinder(Class<B> binderType)
Convinient method to create directly a
Binder using the
underlying BinderModelBuilder.model the builder contains. |
Modifier and Type | Method and Description |
---|---|
Binder<?,?> |
Binder.BinderModel.getBinder(String sourceProperty) |
static <S> Binder<S,S> |
BinderFactory.newBinder(Class<S> sourceType)
Gets the registred mirror binder (source type = target type) with no
context name specified.
|
static <S,T> Binder<S,T> |
BinderFactory.newBinder(Class<S> sourceType,
Class<T> targetType)
Gets the registred binder given his types with no context name.
|
static <S,T> Binder<S,T> |
BinderFactory.newBinder(Class<S> sourceType,
Class<T> targetType,
String contextName)
Gets the registred binder given his types with no context name.
|
static <S> Binder<S,S> |
BinderFactory.newBinder(Class<S> sourceType,
String contextName)
Gets the registred mirror binder (source type = target type) with the
given context name.
|
protected static <S,T,B extends Binder<S,T>> |
BinderFactory.newBinder0(Class<S> sourceType,
Class<T> targetType,
String contextName,
Class<B> binderType)
Instanciate a new binder given his types and his context's name.
|
Binder<S,T> |
BinderModelBuilder.toBinder()
Convinient method to create directly a
Binder using the
underlying BinderModelBuilder.model the builder contains. |
Modifier and Type | Method and Description |
---|---|
void |
Binder.BinderModel.addBinder(String propertyName,
Binder<?,?> binder) |
BinderModelBuilder<S,T> |
BinderModelBuilder.addBinder(String propertyName,
Binder<?,?> binder) |
BinderModelBuilder<S,T> |
BinderModelBuilder.addCollectionBinder(Binder binder,
String... propertyNames) |
protected BinderModelBuilder<S,T> |
BinderModelBuilder.addCollectionStrategy0(String propertyName,
Binder.CollectionStrategy strategy,
Binder binder) |
protected Object |
Binder.bind(Binder binder,
Object read) |
static <S,T> Binder.BinderModel<S,T> |
BinderFactory.registerBinderModel(Binder<S,T> binder) |
static <S,T> Binder.BinderModel<S,T> |
BinderFactory.registerBinderModel(Binder<S,T> binder,
String contextName) |
Copyright © 2004–2020 CodeLutin. All rights reserved.