@Singleton @Named public class ValueConverterToCompatiblePojo extends AbstractValueConverterToCompatiblePojo<Object,Object>
AbstractValueConverterToCompatiblePojo
so it is used as fallback converter for any
Object
if no more specific converter is matching.Constructor and Description |
---|
ValueConverterToCompatiblePojo()
The constructor.
|
Modifier and Type | Method and Description |
---|---|
Class<Object> |
getSourceType()
This the type of the value accepted by this converter.
|
Class<Object> |
getTargetType()
Is the guaranteed return-type of the
conversion . |
convert, doInitialize, getPojoDescriptorBuilder, getPojoDescriptorBuilderFactory, handleNoGetterForSetter, setPojoDescriptorBuilder, setPojoDescriptorBuilderFactory, setPojoFactory
getComposedValueConverter, setComposedValueConverter
convert, getReflectionUtil, setReflectionUtil
createLogger, getLogger
doInitialized, getInitializationState, initialize
public ValueConverterToCompatiblePojo()
public Class<Object> getSourceType()
ValueConverter
Object
if you want to accept any
value. A very common source-type
is String
.public Class<Object> getTargetType()
ValueConverter
conversion
. This
information is used externally to choose the most specific ValueConverter
that is
appropriate
for the conversion. Object
as target-type
while a specific
converter may have Collection
as target-type
. Now if an object
(compliant with the source-type
) needs to be converted to a
Collection
or List
, the specific converter is used while for other
objects the generic converter is chosen. target-type
is often more general than the actual
returned result
. So a ValueConverter
that converts
a comma-separated String
to an ArrayList
will typically declare
List
as target-type
.Copyright © 2001–2016 mmm-Team. All rights reserved.