Interface PlatformHttpPluginRegistry
- All Superinterfaces:
AutoCloseable,org.apache.camel.CamelContextAware,org.apache.camel.spi.HasCamelContext,org.apache.camel.Service,org.apache.camel.StaticService
- All Known Implementing Classes:
PlatformHttpPluginRegistry
public interface PlatformHttpPluginRegistry
extends org.apache.camel.CamelContextAware, org.apache.camel.StaticService
Factory to abstract the creation of the Plugin Registry for camel-platform-http.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleanregister(PlatformHttpPlugin plugin) Register the plugin into the registry.<T extends PlatformHttpPlugin>
Optional<T> resolvePluginById(String id, Class<T> type) Resolve a plugin by idMethods inherited from interface org.apache.camel.CamelContextAware
setCamelContextMethods inherited from interface org.apache.camel.spi.HasCamelContext
getCamelContextMethods inherited from interface org.apache.camel.Service
build, close, init, start, stop
-
Field Details
-
FACTORY
- See Also:
-
-
Method Details
-
resolvePluginById
Resolve a plugin by id- Parameters:
id- the plugin idtype- the plugin class type- Returns:
- the plugin if found
-
register
Register the plugin into the registry.- Parameters:
plugin- the plugin- Returns:
- true if the plugin was added, or false if already exists
-