Hq1125 injected object registry

actually, ignore that what we need to do is separate this from the mainb configuration. something like https://github.com/andytaylor/hornetq/commits/HQ1125-InjectedObjectRegistry.