Package hudson.widgets
Class HistoryWidget.FactoryImpl
- All Implemented Interfaces:
- ExtensionPoint
- Enclosing class:
- HistoryWidget<O extends ModelObject,- T> 
@Extension
@Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class)
@Symbol("history")
public static final class HistoryWidget.FactoryImpl
extends WidgetFactory<Job,HistoryWidget> 
- 
Nested Class SummaryNested classes/interfaces inherited from interface hudson.ExtensionPointExtensionPoint.LegacyInstancesAreScopedToHudson
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionCreates widgets for a given object.type()The type of object this factory cares about.A supertype of any widgets this factory might produce.Methods inherited from class jenkins.widgets.WidgetFactoryfactoriesFor
- 
Constructor Details- 
FactoryImplpublic FactoryImpl()
 
- 
- 
Method Details- 
typeDescription copied from class:WidgetFactoryThe type of object this factory cares about. Declared separately, rather than by havingWidgetFactory.createFor(T)do a check-cast, so that method bodies are not loaded until actually needed.- Specified by:
- typein class- WidgetFactory<Job,- HistoryWidget> 
- Returns:
- the type of WidgetFactory
 
- 
widgetTypeDescription copied from class:WidgetFactoryA supertype of any widgets this factory might produce. Defined so that factories which produce irrelevant widgets need not be consulted. If your implementation was returning multiple disparate kinds of widgets, it is best to split it into two factories.If an API defines an abstract Widgetsubtype, and you are providing a concrete implementation, you may return the API type here to delay class loading.- Specified by:
- widgetTypein class- WidgetFactory<Job,- HistoryWidget> 
- Returns:
- a bound for the result of WidgetFactory.createFor(T)
 
- 
createForDescription copied from class:WidgetFactoryCreates widgets for a given object. This may be called frequently for the same object, so if your implementation is expensive, do your own caching.- Specified by:
- createForin class- WidgetFactory<Job,- HistoryWidget> 
- Parameters:
- target- a widgetable object
- Returns:
- a possible empty set of widgets (typically either using Set.of()).
 
 
-