diff --git a/core/src/main/java/hudson/Plugin.java b/core/src/main/java/hudson/Plugin.java index fe0147da90..bd3223fbbf 100644 --- a/core/src/main/java/hudson/Plugin.java +++ b/core/src/main/java/hudson/Plugin.java @@ -95,6 +95,15 @@ public abstract class Plugin implements Saveable { public void setServletContext(ServletContext context) { } + /** + * Gets the paired {@link PluginWrapper}. + * + * @since 1.426 + */ + public PluginWrapper getWrapper() { + return wrapper; + } + /** * Called to allow plugins to initialize themselves. *