Hello, I wanted to be able to configure my bean with XML, like ActiveMQ brokers can be configured in a blueprint XML file. So far I got my "NamespaceHandler" registered and the parse method is called on it when blueprint reads my .xml file in Karaf's deploy folder. But now I'm lost at what to do next? Am I supposed to instantiate new objects in the parse function and register them in the osgi container? I have no clue what to put in the "Metadata" return object and how it will be processed by blueprint.
I was inspired to try it this way based on this article: http://www.tips4java.com/osgiextending-blueprint-with-namespaces/ The example given there doesn't quite seem to cover what blueprint does, so I also started looking into the blueprint source to find out what is done with the (Component)Metadata that is returned from the parse method. Not really getting it, I also tried to figure out how ActiveMQ does it. ActiveMQ seems not to implement the NamespaceHandler itself, but relies on "XBean", but that seems really underdocumented and the last release dates back from 2007... so I wonder whether that's the way to go. Is there anyone who can give me (point me to) an explanation on how to implement a NamespaceHandler. My goal isn't too complex: I just want to create a bean with a list of records instead of just key-value pairs as one can do with blueprint out-of-the-box. Kind regards, Tom Mercelis
