Croway opened a new pull request, #19213:
URL: https://github.com/apache/camel/pull/19213
…that allows automatic discovery and initialization of third-party
components during CamelContext startup.
The ContextServicePlugin provides an entry point into the Camel Context for
third party plugins. This way, 3d party dependencies can be created to offer
independent, additional features to a Camel application.
For example, a set of custom beans can be easily provided by
```
public class MyContextServicePlugin implements ContextServicePlugin {
@Override
public void load(CamelContext camelContext) {
camelContext.getRegistry().bind("myBean", new TestBean());
camelContext.getRegistry().bind("mySecondBean", new
AnotherTestBean());
...
}
}
```
and the service
`META-INF/services/org.apache.camel.spi.ContextServicePlugin` with content
`com.foo.acme.TestPlugin`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]