Interface ContextServiceLoaderPluginResolver
- All Superinterfaces:
AutoCloseable, CamelContextAware, HasCamelContext, Service, ShutdownableService, StatefulService, SuspendableService
Service Provider Interface (SPI) for discovering and loading
ContextServicePlugin implementations during
CamelContext initialization.
This resolver is responsible for automatically discovering and loading plugins that extend Camel's functionality through the Java ServiceLoader mechanism. Implementations of this interface participate in the Camel service lifecycle and are typically invoked during CamelContext startup to initialize third-party components and extensions.
The plugin resolution process typically occurs after the CamelContext has been created and configured but before routes are started, ensuring that all plugins have the opportunity to modify or extend the context as needed.
Implementations must be stateful services that can be started and stopped as part of the normal Camel lifecycle, and they must be aware of the CamelContext they are operating on.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidonReload()InvokesContextServicePlugin.onReload(org.apache.camel.CamelContext)on all discovered plugins, giving them an opportunity to refresh their state before routes are reloaded.Methods inherited from interface CamelContextAware
setCamelContextMethods inherited from interface HasCamelContext
getCamelContextMethods inherited from interface ShutdownableService
shutdownMethods inherited from interface StatefulService
getStatus, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspendingMethods inherited from interface SuspendableService
isSuspended, resume, suspend
-
Method Details
-
onReload
void onReload()InvokesContextServicePlugin.onReload(org.apache.camel.CamelContext)on all discovered plugins, giving them an opportunity to refresh their state before routes are reloaded.
-