Interface Provider<T>

All Superinterfaces:
ConfigurablePlugin, Plugin

public interface Provider<T> extends ConfigurablePlugin
Base interface for dependency providers
Author:
Andrea Di Cesare <andrea@softinstigate.com>
  • Method Details

    • get

      T get(PluginRecord<?> caller)
      Parameters:
      caller - the PluginRecord of the plugin that requires this dependency
      Returns:
      the provided object
    • name

      default String name()
      Returns:
      the name of the provider
    • type

      default Type type()
      Returns:
      the Type of the generic parameter T
    • rawType

      default Class<? super T> rawType()
      Returns:
      the Class of the generic parameter T