Package org.apache.camel.spi
Interface PluginManager
public interface PluginManager
A manager for internal plugins. This is part of the internal Camel API and not meant for public usage.
-
Method Summary
Modifier and TypeMethodDescription<T> void
addContextPlugin
(Class<T> type, T module) Allows installation of custom plugins to the Camel context.<T> T
getContextPlugin
(Class<T> type) Gets a plugin of the given type.<T> void
lazyAddContextPlugin
(Class<T> type, Supplier<T> module) Allows lazy installation of custom plugins to the Camel context.
-
Method Details
-
getContextPlugin
Gets a plugin of the given type.- Parameters:
type
- the type of the extension- Returns:
- the extension, or null if no extension has been installed.
-
addContextPlugin
Allows installation of custom plugins to the Camel context.- Parameters:
type
- the type of the extensionmodule
- the instance of the extension
-
lazyAddContextPlugin
Allows lazy installation of custom plugins to the Camel context.- Parameters:
type
- the type of the extensionmodule
- the instance of the extension
-