activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <>
Subject [Camel] simplified discovery of Component/Endpoints available
Date Wed, 04 Apr 2007 14:44:24 GMT
I found the old implementation of EndpointResolver a bit smelly; so
I've tried to clean it up to make it easier for folks to write new

The basic idea is

* folks should generally only need to write a Component & Endpoint
implementation; no other classes needed other than maybe

* components can create new endpoints via the resolveEndpoint(uri)
method; the can just derive from DefaultComponent and get most of the
URI magic for free; just overloading the actual factory method to
create an Endpoint

* adding a file in
META-INF/services/org/apache/came/component/${scheme} can plugin
auto-discovered components

* users can explicitly instantiate, configure & register components to
the CamelContext; or via the Injector the CamelContext can auto-inject
them with their required dependencies. (e.g. folks could have a single
DataSource or ConnectionFactory in a spring context which could be
auto-injected etc)

I've written a little bit of documentation for component developers here...

I've just committed the above changes. Thoughts?



View raw message