I did a custom namespace for my project.
within this project I want to declare that kind of things :
or in a chain :
<mynamespace:rest-service input-channel="chan1" />
which would be translated to spring integration xml as :
<int:chain id="mychainid" input-channel="in"
So I would like to know what to put in the "BeanDefinitionParser" to be able to register the service-activator. I checked the sources for Service Activator when xml is parsed but .. I don't understand what happens with the BeanDefinitionBuilder ... As far as I understood, it uses a bean factory but ... I can't figure out how to do it myself and to be sure that it will also work in a chain.
<int:service-activator ref="abeanreference" method="theMethodToCall" />
<bean id="abeanreference" class="the.rest.service.caller.implementation" />
I would like some tips or advices about that ... what should I do ? and is this a good practice or not ?