Package org.apache.camel.converter

Examples of org.apache.camel.converter.MyBean


@Converter
public class InstanceMethodWithExchangeTestConverter {

    @Converter
    public MyBean fromArray(String[] values, Exchange exchange) {
        return new MyBean(Integer.parseInt(values[0]),
            exchange.getProperty("prefix", String.class) + values[1]);
    }
View Full Code Here


public class StaticMethodWithExchangeTestConverter {

    @Converter
    public MyBean fromString(String text, Exchange exchange) {
        String[] values = ObjectHelper.splitOnCharacter(text, ":", 2);
        return new MyBean(Integer.parseInt(values[0]), exchange.getProperty("prefix", String.class) + values[1]);
    }
View Full Code Here

TOP

Related Classes of org.apache.camel.converter.MyBean

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.