
package org.apache.camel.spring.postprocessor;

import org.apache.camel.Produce;
import org.apache.camel.ProducerTemplate;
import org.springframework.stereotype.Component;

/**
 * @version 
 */
@Component("testPojo")
public class TestPojo {

    @MagicAnnotation("Changed Value")
    private String testValue = "Initial Value";

    @Produce(uri = "mock:foo")
    private ProducerTemplate producer;

    public String getTestValue() {
        return this.testValue;
    }

    public void sendToFoo(String msg) {
        producer.sendBody(msg);
    }

}
