Hello, I'm trying to find "xbean-blueprint"; but besides dozens of sites which offer browsing the sourcecode, the only "homepage" seems to be http://geronimo.apache.org/xbean/ and it seems terribly outdated (it mentions version 2.8 from 2007 as the latest version)... did the project move? What's the new official location?
Kind regards, Tom Mercelis 2012/9/14 David Jencks <[email protected]>: > xbean-blueprint works fine and is a lot newer than 2007.... I really > recommend using it rather than trying to rewrite the functionality. > > If you deploy the xbean-blueprint bundle and imitate activemq you should be > able to get it to work. Sorry about the lack of docs.... > > You might try looking at what happens during the activemq build with the > maven plugin that generates the required property files from the javaodc > "annotations" and how those are used by xbean-blueprint. > > david jencks > > > On Sep 14, 2012, at 9:09 AM, Tom Mercelis wrote: > >> 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 >
