Code example for DefaultConversionService

0
 
	/** 
	 * Create a new instance with a default {@link ConversionService}. 
	 */ 
	public GenericMessageConverter() { 
		this.conversionService = new DefaultConversionService();
	} 
 
	/** 
	 * Create a new instance with the given {@link ConversionService}. 
	 */ 
	public GenericMessageConverter(ConversionService conversionService) {
		Assert.notNull(conversionService, "ConversionService must not be null");
		this.conversionService = conversionService;
	} 
 
 
	@Override 
	public Object fromMessage(Message<?> message, Class<?> targetClass) {
		Object payload = message.getPayload();