public interface ConfigurableJTransfo extends JTransfo
DEFAULT_TAG_WHEN_NO_TAGS| Modifier and Type | Method and Description |
|---|---|
List<ConvertInterceptor> |
getConvertInterceptors()
Get the list of
ConvertInterceptors to allow customization. |
List<ObjectFinder> |
getObjectFinders()
Get the list of
ObjectFinders to allow customization. |
List<ObjectReplacer> |
getObjectReplacers()
Get the list of
ObjectReplacers to allow customization. |
List<TypeConverter> |
getTypeConverters()
Get the set of type converters which are used by this jTransfo instance.
|
void |
updateConvertInterceptors()
Update the list of convert interceptors which is used based on the internal list
(see
getConvertInterceptors(). |
void |
updateConvertInterceptors(List<ConvertInterceptor> newConvertInterceptors)
Update the list of convert interceptors which is used.
|
void |
updateObjectFinders()
Update the list of object finders which is used based on the internal list (see
getObjectFinders(). |
void |
updateObjectFinders(List<ObjectFinder> newObjectFinders)
Update the list of object finders which is used.
|
void |
updateObjectReplacers()
Update the list of object replacers which is used based on the internal list
(see
getObjectReplacers(). |
void |
updateObjectReplacers(List<ObjectReplacer> newObjectReplacers)
Update the list of object replacers which is used.
|
void |
updateTypeConverters()
Update the list of type converters which is used based on the internal list
(see
getTypeConverters(). |
void |
updateTypeConverters(List<TypeConverter> newConverters)
Update the list of type converters which is used.
|
default ConfigurableJTransfo |
with(ConvertInterceptor convertInterceptor)
Add the given convert interceptor to this JTransfo instance.
|
default ConfigurableJTransfo |
with(ObjectFinder objectFinder)
Add the given object finder to this JTransfo instance.
|
default ConfigurableJTransfo |
with(ObjectReplacer objectReplacer)
Add the given object replacer to this JTransfo instance.
|
default ConfigurableJTransfo |
with(TypeConverter typeConverter)
Add the given type converter to this JTransfo instance.
|
convert, convert, convertList, convertTo, findTarget, getDomainClass, getToSubType, isToClassList<TypeConverter> getTypeConverters()
You are explicitly allowed to change this list, but beware to do this from one thread only.
Changes in the list are not used until you call updateTypeConverters().
default ConfigurableJTransfo with(TypeConverter typeConverter)
This is a shorthand which adds the type converter to the getTypeConverters() list and
calls updateTypeConverters().
typeConverter - type convertervoid updateTypeConverters()
getTypeConverters().void updateTypeConverters(List<TypeConverter> newConverters)
When null is passed, this updates the changes to the internal list (see getTypeConverters().
Alternatively, you can pass the new list explicitly.
newConverters - new list of type convertersList<ObjectFinder> getObjectFinders()
ObjectFinders to allow customization.
The elements are tried in reverse order (from end to start of list).
You are explicitly allowed to change this list, but beware to do this from one thread only.
Changes in the list are not used until you call updateObjectFinders().
default ConfigurableJTransfo with(ObjectFinder objectFinder)
This is a shorthand which adds the object finder to the getObjectFinders() list and
calls updateObjectFinders().
objectFinder - object findervoid updateObjectFinders()
getObjectFinders().void updateObjectFinders(List<ObjectFinder> newObjectFinders)
When null is passed, this updates the changes to the internal list (see getObjectFinders().
Alternatively, you can pass the new list explicitly.
newObjectFinders - new list of type convertersList<ObjectReplacer> getObjectReplacers()
ObjectReplacers to allow customization.
The elements are tried in order (from start to end of list).
You are explicitly allowed to change this list, but beware to do this from one thread only.
Changes in the list are not used until you call updateObjectReplacers().
default ConfigurableJTransfo with(ObjectReplacer objectReplacer)
This is a shorthand which adds the object finder to the getObjectFinders() list and
calls updateObjectFinders().
objectReplacer - object replacervoid updateObjectReplacers()
getObjectReplacers().void updateObjectReplacers(List<ObjectReplacer> newObjectReplacers)
When null is passed, this updates the changes to the internal list (see getObjectReplacers().
Alternatively, you can pass the new list explicitly.
newObjectReplacers - new list of type convertersList<ConvertInterceptor> getConvertInterceptors()
ConvertInterceptors to allow customization.
The elements are tried in reverse order (from end to start of list).
You are explicitly allowed to change this list, but beware to do this from one thread only.
Changes in the list are not used until you call updateConvertInterceptors().
default ConfigurableJTransfo with(ConvertInterceptor convertInterceptor)
This is a shorthand which adds the convert interceptor to the getConvertInterceptors() list and
calls updateConvertInterceptors().
convertInterceptor - convert interceptorvoid updateConvertInterceptors()
getConvertInterceptors().void updateConvertInterceptors(List<ConvertInterceptor> newConvertInterceptors)
When null is passed, this updates the changes to the internal list (see getConvertInterceptors().
Alternatively, you can pass the new list explicitly.
newConvertInterceptors - new list of convert interceptorsCopyright © 2017. All rights reserved.