...
Users can then either explicitly create your component, configure it and register with a CamelContext or users can use a URI which auto-creates your component.
Writing Endpoints
An Endpoint is an object which can have message Exchange objects sent to it via a Producer or can have message exchanges consumed via either
- Event Driven Consumer via the Consumer interface
- Polling Consumer via the PollingConsumer interface
Typically you just derive from DefaultEndpoint and implement any of the factory methods required such as
If your endpoint is a polling-centric component you can just derive from DefaultPollingEndpoint and then implement createPollingConsumer(); the createConsumer() method will be created for you.
Dependency injection and auto-discovery
...