GitHub user yuruki opened a pull request: https://github.com/apache/camel/pull/296
CAMEL-7875 Method for adding objects to Registry Having a write method in Registry interface simplifies configuring Camel routes in CamelTestSupport unit tests where a registry reference is not available and when you would like to configure beans required by the components inside route builder's configure method. This change eliminates the need to pass registry references around. If your code can see its CamelContext you'll have uniform write access to its registry. You can merge this pull request into a Git repository by running: $ git pull https://github.com/yuruki/camel registryWrite Alternatively you can review and apply these changes as the patch at: https://github.com/apache/camel/pull/296.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #296 ---- commit 74526552c9f51f8fdb5386b6456791ec1e57ac3c Author: Jyrki Ruuskanen <yur...@kotikone.fi> Date: 2014-10-06T16:19:38Z Added add(String name, Object object) method to Registry ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---