Interface FilterFactoryContext


public interface FilterFactoryContext
Construction context for Filters. Used to pass the filter configuration and environmental resources to the FilterFactory when it is creating a new instance of the Filter. see FilterFactory.createFilter(FilterFactoryContext, Object)
  • Method Details

    • filterDispatchExecutor

      FilterDispatchExecutor filterDispatchExecutor()
      An executor backed by the single Thread responsible for dispatching work to a Filter instance for a channel. It is safe to mutate Filter members from this executor.
      Returns:
      executor
      Throws:
      IllegalStateException - if the factory is not bound to a channel yet.
    • pluginInstance

      <P> P pluginInstance(Class<P> pluginClass, String implementationName)
      Gets a plugin instance for the given plugin type and name
      Type Parameters:
      P - The plugin manager type
      Parameters:
      pluginClass - The plugin type
      implementationName - The plugin implementation name
      Returns:
      The plugin instance
      Throws:
      UnknownPluginInstanceException - the plugin with given implementation name is unknown
    • pluginImplementationNames

      <P> Set<String> pluginImplementationNames(Class<P> pluginClass)
      Returns the implementation names of the registered instances of this plugin.
      Type Parameters:
      P - The plugin manager type
      Parameters:
      pluginClass - The plugin type
      Returns:
      set of known implementation names registered for the given plugin class.