Class Extension<T>

java.lang.Object
com.google.gerrit.extensions.registration.Extension<T>
Type Parameters:
T - Type of extension point that this extension implements

public class Extension<T> extends Object
An extension that is provided by a plugin.

Contains the name of the plugin that provides the extension, the extension point implementation and optionally the export name under which the extension was exported.

An export name is only available if this extension is an entry in a DynamicMap.

  • Constructor Details

    • Extension

      public Extension(String pluginName, com.google.inject.Provider<T> provider)
    • Extension

      protected Extension(String pluginName, String exportName, com.google.inject.Provider<T> provider)
  • Method Details

    • getPluginName

      public String getPluginName()
    • getExportName

      public String getExportName()
    • getProvider

      public com.google.inject.Provider<T> getProvider()
    • get

      public T get()