Interface PluginsContainer.PluginProvider

  • 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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      <X> java.util.stream.Stream<X> provide​(java.lang.Class<X> type)
      Provide the plugins for the given type if the type is equal.
    • Method Detail

      • provide

        <X> java.util.stream.Stream<X> provide​(java.lang.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