@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 ValueConverters to use as default. |
void |
setReflectionUtil(ReflectionUtil reflectionUtil) |
getDefaultConverter, setDefaultConvertercreateLogger, getLoggerdoInitialized, getInitializationState, initializeprivate List<ValueConverter<?,?>> converters
private ReflectionUtil reflectionUtil
public ComposedValueConverterFactoryImpl()
public ComposedValueConverter createConverter(boolean addDefaultConverters, List<ValueConverter<?,?>> converterList)
ComposedValueConverterFactoryComposedValueConverter with the given configuration.addDefaultConverters - - true if all ValueConverters 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 ValueConverters 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 ValueConverters to use as default.converterList - is the list of converters to register.protected void doInitialize()
AbstractComponentinitialization. It is called when AbstractComponent.initialize() is
invoked for the first time. super.AbstractComponent.doInitialize().doInitialize in class AbstractLoggableComponentCopyright © 2001–2016 mmm-Team. All rights reserved.