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> voidaddContextPlugin(Class<T> type, T module) Allows installation of custom plugins to the Camel context.<T> TgetContextPlugin(Class<T> type) Gets a plugin of the given type.booleanisContextPluginInUse(Class<?> type) Whether a plugin of the given type is already in use<T> voidlazyAddContextPlugin(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.
-
isContextPluginInUse
Whether a plugin of the given type is already in use- Parameters:
type- the type of the extension- Returns:
- true if already in use, false otherwise
-
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
-