Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

How do I add a component

So you can You might first want to read Writing Components for a background in how to implement a new component.
Typically it means you write an implementation of the Component interface, typically usually deriving from DefaultComponent.

...

If you look in camel-spring at CamelNamespaceHandler you'll see how we handle the Spring XML stuff (warning its kinda hairy code to look at (smile). If you wanted <fooComponent> to be a standard part of the core Camel schema then you'd hack that file to add your component & conftribute a patch to the camel XSD. Otherwise you could write your own namespace & schema if you prefer.

See Also