hello Camel!

Is it possible to use generics in annotated converters ?

I tried to do this

    @Converter
    public <T> T toPayload(Message<T> msg){
        return msg.getPayload();
    }

Which does not work. However, replacing <T> by a real class definition is
working for that type.
I would like to avoid to create one converter for each type of payload my
messages can have, is that possible ?

Thanks in advance,

Olivier
-- 
View this message in context: 
http://camel.465427.n5.nabble.com/Converter-Generics-tp2839250p2839250.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to