Interface PluginsContainer.PluginProvider

All Known Implementing Classes:
PluginsContainer.AbstractPlugin
Enclosing class:
PluginsContainer

@ProviderType public static interface PluginsContainer.PluginProvider
A Plugin Provider provides plugins when accessed with a type selector. The provided plugins are not part of the container's plugin set.
  • Method Summary

    Modifier and Type
    Method
    Description
    <X> Stream<X>
    provide(Class<X> type)
    Provide the plugins for the given type if the type is equal.
  • Method Details

    • provide

      <X> Stream<X> provide(Class<X> type)
      Provide the plugins for the given type if the type is equal.
      Type Parameters:
      X - the requested type
      Parameters:
      type - the class of the provider type, never null
      Returns:
      a stream supplying the provided plugins, can be empty