use of org.simpleflatmapper.converter.impl.JavaBaseConverterFactoryProducer in project SimpleFlatMapper by arnaudroger.
the class ConverterService method getConverterFactories.
private static List<ConverterFactory> getConverterFactories() {
final List<ConverterFactory> converterFactories = new ArrayList<ConverterFactory>();
Consumer<ConverterFactory<?, ?>> factoryConsumer = new Consumer<ConverterFactory<?, ?>>() {
@Override
public void accept(ConverterFactory<?, ?> converterFactory) {
converterFactories.add(converterFactory);
}
};
new JavaBaseConverterFactoryProducer().produce(factoryConsumer);
// IFJAVA8_START
new JavaTimeConverterFactoryProducer().produce(factoryConsumer);
// IFJAVA8_END
ProducerServiceLoader.produceFromServiceLoader(ConverterFactoryProducer.class, factoryConsumer);
return converterFactories;
}
Aggregations