By annotating my Interceptor class with
@MCMain(
outputPackage="foo.myinterceptor.config.spring",
outputName="router-foo.xsd",
targetNamespace="
http://membrane-soa.org/proxies/1/")
the Parser for my syntax was generated.
What's left (I believe) is to call
namespaceHandler.registerGlobalBeanDefinitionParser("myInterceptor", new MyInterceptorParser());
but I can't figure out yet how to achieve this.
It would be nice if I could just pack my contributed tag registration into a spring service that gets picked up.
The Changelog.txt writes:
To extend Membrane's configuration language using the @MC... annotations,
you now have to implement a Spring NamespaceHandler extending
com.predic8.membrane.annot.AbstractNamespaceHandler . Use
com.predic8.membrane.core.config.spring.NamespaceHandler as an example.
I did that but it's not picked up.
A separate Java project on GitHub with a demo interceptor would be nice.