Code example for DefaultConversionService

0
/** 
 * @author Christoph Strobl 
 */ 
public abstract class SolrConverterBase implements SolrConverter, InitializingBean {
 
	private final GenericConversionService conversionService = new DefaultConversionService();
	private CustomConversions customConversions = new CustomConversions();
 
	@Override 
	public Collection<SolrInputDocument> write(Iterable<?> source) {
		if (source == null) {
			return Collections.emptyList();
		} 
 
		List<SolrInputDocument> resultList = new ArrayList<SolrInputDocument>();
		for (Object bean : source) {
			if (bean instanceof SolrInputDocument) {
				resultList.add((SolrInputDocument) bean);
			} else { 
				resultList.add(createAndWrite(bean));
Contextual code suggestions in your IDE  Get Codota for Java