Class ObjectComponent<T extends AbstractModelObject>
java.lang.Object
com.cloudbees.jenkins.support.api.Component
com.cloudbees.jenkins.support.api.ObjectComponent<T>
- All Implemented Interfaces:
ExtensionPoint,Describable<ObjectComponent<T>>
- Direct Known Subclasses:
AgentsConfigFile,DirectoryComponent,DumpExportTable,NodeExecutors,ProcFilesRetriever,SlaveLaunchLogs,ThreadDumps
public abstract class ObjectComponent<T extends AbstractModelObject>
extends Component
implements Describable<ObjectComponent<T>>, ExtensionPoint
Represents a component of a support bundle for a specific model object.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.cloudbees.jenkins.support.api.Component
Component.ComponentCategoryNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddContents(Container container) Add contents to a containerabstract voidaddContents(Container container, T item) Add contents from a specific item to a containerstatic <T extends AbstractModelObject>
List<ObjectComponent<T>>allInstances(T item) All applicableObjectComponents for the class.static <T extends AbstractModelObject>
List<ObjectComponentDescriptor<T>>for_(T item) All applicableObjectComponentDescriptors for the class.<C extends AbstractModelObject>
booleanisApplicable(Class<C> clazz) Return if this component is applicable to a specific class of item.protected booleanisApplicable(T item) Return if this component is applicable to a specific item.booleanisSelectedByDefault(T item) Control if the component should be selected by default, based on the applicable itemMethods inherited from class com.cloudbees.jenkins.support.api.Component
canBeGeneratedAsync, getCategory, getDisplayName, getDisplayPermissions, getId, getRequiredPermissions, isEnabled, isSelectedByDefault, start, supersedes
-
Constructor Details
-
ObjectComponent
public ObjectComponent()
-
-
Method Details
-
getDescriptor
- Specified by:
getDescriptorin interfaceDescribable<T extends AbstractModelObject>
-
addContents
Add contents to a container- Specified by:
addContentsin classComponent- Parameters:
container- aContainer
-
addContents
Add contents from a specific item to a container- Parameters:
container- theContaineritem- the item
-
allInstances
All applicableObjectComponents for the class. -
for_
All applicableObjectComponentDescriptors for the class. -
isApplicable
Return if this component is applicable to a specific class of item.- Overrides:
isApplicablein classComponent- Type Parameters:
C- Object that extendsAbstractModelObject- Parameters:
clazz- the class- Returns:
trueif applicable to this class
-
isApplicable
Return if this component is applicable to a specific item.- Parameters:
item- the item- Returns:
- true if applicable
-
isSelectedByDefault
Control if the component should be selected by default, based on the applicable item- Parameters:
item- the item- Returns:
- true to select the component by default
-