public interface ConfigurableJTransfo extends JTransfo
JTransfo
interface which also includes the configuration settings
which are only needed for configuration/factories, not for normal use.DEFAULT_TAG_WHEN_NO_TAGS, TAG_WHEN_READ_ONLY_DOMAIN
Modifier and Type | Method and Description |
---|---|
List<ClassReplacer> |
getClassReplacers()
Get the list of
ClassReplacer s to allow customization. |
List<ConvertInterceptor> |
getConvertInterceptors()
Get the list of
ConvertInterceptor s to allow customization. |
List<ObjectFinder> |
getObjectFinders()
Get the list of
ObjectFinder s to allow customization. |
List<ObjectReplacer> |
getObjectReplacers()
Get the list of
ObjectReplacer s to allow customization. |
List<PostConverter> |
getPostConverters()
Get the set of postconverters which are used by this jTransfo instance.
|
List<PreConverter> |
getPreConverters()
Get the set of preconverters which are used by this jTransfo instance.
|
List<TypeConverter> |
getTypeConverters()
Get the set of type converters which are used by this jTransfo instance.
|
void |
updateClassReplacers()
Update the list of class replacers which is used based on the internal list
(see
getObjectReplacers() . |
void |
updateClassReplacers(List<ClassReplacer> newClassReplacers)
Update the list of class replacers which is used.
|
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 |
updatePostConverters()
Update the list of postconverters which is used based on the internal list
(see
getPostConverters() . |
void |
updatePostConverters(List<PostConverter> newConverters)
Update the list of type converters which is used.
|
void |
updatePreConverters()
Update the list of preconverters which is used based on the internal list
(see
getPreConverters() . |
void |
updatePreConverters(List<PreConverter> newConverters)
Update the list of type converters 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(ClassReplacer classReplacer)
Add the given class replacer to this JTransfo instance.
|
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(PostConverter postConverter)
Add the given postconverter to this JTransfo instance.
|
default ConfigurableJTransfo |
with(PreConverter preConverter)
Add the given preconverter 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, isToClass
List<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()
ObjectFinder
s 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()
ObjectReplacer
s 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 replacer to the getObjectReplacers()
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 object replacersList<ClassReplacer> getClassReplacers()
ClassReplacer
s 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 updateClassReplacers()
.
default ConfigurableJTransfo with(ClassReplacer classReplacer)
This is a shorthand which adds the class replacer to the getClassReplacers()
list and
calls updateObjectFinders()
.
classReplacer
- class replacervoid updateClassReplacers()
getObjectReplacers()
.void updateClassReplacers(List<ClassReplacer> newClassReplacers)
When null is passed, this updates the changes to the internal list (see getClassReplacers()
.
Alternatively, you can pass the new list explicitly.
newClassReplacers
- new list of class replacersList<ConvertInterceptor> getConvertInterceptors()
ConvertInterceptor
s 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 interceptorsList<PreConverter> getPreConverters()
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 updatePreConverters()
.
default ConfigurableJTransfo with(PreConverter preConverter)
This is a shorthand which adds the type converter to the getPreConverters()
list and
calls updatePreConverters()
.
preConverter
- preconvertervoid updatePreConverters()
getPreConverters()
.void updatePreConverters(List<PreConverter> newConverters)
When null is passed, this updates the changes to the internal list (see getPreConverters()
.
Alternatively, you can pass the new list explicitly.
newConverters
- new list of preconvertersList<PostConverter> getPostConverters()
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 updatePostConverters()
.
default ConfigurableJTransfo with(PostConverter postConverter)
This is a shorthand which adds the type converter to the getPostConverters()
list and
calls updatePostConverters()
.
postConverter
- postconvertervoid updatePostConverters()
getPostConverters()
.void updatePostConverters(List<PostConverter> newConverters)
When null is passed, this updates the changes to the internal list (see getPostConverters()
.
Alternatively, you can pass the new list explicitly.
newConverters
- new list of postconvertersCopyright © 2022. All rights reserved.