public class JConverterBuilder extends Object
Modifier and Type | Field and Description |
---|---|
protected ConverterManager |
converterManager |
protected FactoryManager |
factoryManager |
Modifier | Constructor and Description |
---|---|
protected |
JConverterBuilder() |
protected |
JConverterBuilder(ConverterManager converterManager,
FactoryManager factoryManager) |
protected |
JConverterBuilder(JGum jgum) |
Modifier and Type | Method and Description |
---|---|
JConverter |
build() |
static JConverterBuilder |
create() |
void |
register(Converter<?,?> converter)
Registers a converter.
|
void |
register(Factory<?> factory)
Registers a factory.
|
void |
register(Object key,
Converter<?,?> converter)
Registers a converter under a given key.
|
void |
register(Object key,
Factory<?> factory)
Registers a factory under a given key.
|
protected final ConverterManager converterManager
protected final FactoryManager factoryManager
protected JConverterBuilder()
protected JConverterBuilder(JGum jgum)
protected JConverterBuilder(ConverterManager converterManager, FactoryManager factoryManager)
public static JConverterBuilder create()
public JConverter build()
public void register(Converter<?,?> converter)
converter
- a converter to register.public void register(Object key, Converter<?,?> converter)
key
- the key under which the converter is registered.converter
- the converter to register.public void register(Factory<?> factory)
factory
- the factory to register.Copyright © 2014. All rights reserved.