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
    Modifier and Type
    Field
    Description
    static final String
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Register the plugin into the registry.
    Resolve a plugin by id

    Methods inherited from interface org.apache.camel.CamelContextAware

    setCamelContext

    Methods inherited from interface org.apache.camel.spi.HasCamelContext

    getCamelContext

    Methods inherited from interface org.apache.camel.Service

    build, close, init, start, stop
  • Field Details

  • Method Details

    • resolvePluginById

      <T extends PlatformHttpPlugin> Optional<T> resolvePluginById(String id, Class<T> type)
      Resolve a plugin by id
      Parameters:
      id - the plugin id
      type - the plugin class type
      Returns:
      the plugin if found
    • register

      boolean register(PlatformHttpPlugin plugin)
      Register the plugin into the registry.
      Parameters:
      plugin - the plugin
      Returns:
      true if the plugin was added, or false if already exists