Package hudson.console
Class UrlAnnotator
- java.lang.Object
-
- hudson.console.ConsoleAnnotatorFactory<Object>
-
- hudson.console.UrlAnnotator
-
- All Implemented Interfaces:
ExtensionPoint
@Extension @Symbol("url") public class UrlAnnotator extends ConsoleAnnotatorFactory<Object>
Annotates URLs in the console output to hyperlink.- Author:
- Kohsuke Kawaguchi
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description UrlAnnotator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConsoleAnnotator
newInstance(Object context)
Called when a console output page is requested to create a statefulConsoleAnnotator
.-
Methods inherited from class hudson.console.ConsoleAnnotatorFactory
all, doScriptJs, doStyleCss, hasScript, hasStylesheet, type
-
-
-
-
Method Detail
-
newInstance
public ConsoleAnnotator newInstance(Object context)
Description copied from class:ConsoleAnnotatorFactory
Called when a console output page is requested to create a statefulConsoleAnnotator
.This method can be invoked concurrently by multiple threads.
- Specified by:
newInstance
in classConsoleAnnotatorFactory<Object>
- Parameters:
context
- The model object that owns the console output, such asRun
. This method is only called when the context object if assignable to the advertised type.- Returns:
- null if this factory is not going to participate in the annotation of this console.
-
-