@Named public class ComposedValueConverterFactoryImpl extends AbstractComposedValueConverterFactory
ComposedValueConverterFactory
.Modifier and Type | Field and Description |
---|---|
private List<ValueConverter<?,?>> |
converters |
private ReflectionUtil |
reflectionUtil |
Constructor and Description |
---|
ComposedValueConverterFactoryImpl()
The constructor.
|
Modifier and Type | Method and Description |
---|---|
ComposedValueConverter |
createConverter(boolean addDefaultConverters,
List<ValueConverter<?,?>> converterList)
Creates a new custom instance of
ComposedValueConverter with the given configuration. |
protected void |
doInitialize()
This method performs the actual
initialization . |
ReflectionUtil |
getReflectionUtil()
This method gets the
ReflectionUtil instance to use. |
void |
setConverters(List<ValueConverter<?,?>> converterList)
This method injects a
List of ValueConverter s to use as default. |
void |
setReflectionUtil(ReflectionUtil reflectionUtil) |
getDefaultConverter, setDefaultConverter
createLogger, getLogger
doInitialized, getInitializationState, initialize
private List<ValueConverter<?,?>> converters
private ReflectionUtil reflectionUtil
public ComposedValueConverterFactoryImpl()
public ComposedValueConverter createConverter(boolean addDefaultConverters, List<ValueConverter<?,?>> converterList)
ComposedValueConverterFactory
ComposedValueConverter
with the given configuration.addDefaultConverters
- - true
if all ValueConverter
s of the default converter
(technically all those registered via Cdi
) should
be added to the new requested ComposedValueConverter
, false
otherwise (if only the given
converters should be added).converterList
- is the List
of the ValueConverter
s to add (register as plugin) to the new
requested ComposedValueConverter
.ComposedValueConverter
instance with the specified configuration.public ReflectionUtil getReflectionUtil()
ReflectionUtil
instance to use.ReflectionUtil
to use.@Inject public void setReflectionUtil(ReflectionUtil reflectionUtil)
reflectionUtil
- is the ReflectionUtil
to Inject
.@Inject public void setConverters(List<ValueConverter<?,?>> converterList)
List
of ValueConverter
s to use as default.converterList
- is the list of converters to register.protected void doInitialize()
AbstractComponent
initialization
. It is called when AbstractComponent.initialize()
is
invoked for the first time. super.
AbstractComponent.doInitialize()
.doInitialize
in class AbstractLoggableComponent
Copyright © 2001–2016 mmm-Team. All rights reserved.