Package jenkins.branch
Class BranchProjectFactoryDescriptor
Base class for all
BranchProjectFactory instances.-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self -
Field Summary
Fields inherited from class hudson.model.Descriptor
clazz -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedFully inferring constructor to use when the descriptor is an inner class of theBranchProjectFactoryand type parameter inference works because it just should work.protectedBranchProjectFactoryDescriptor(Class<? extends BranchProjectFactory<?, ?>> clazz) Semi explicit constructor to use when the descriptor is not an inner class of theBranchProjectFactory.protectedBranchProjectFactoryDescriptor(Class<? extends BranchProjectFactory<?, ?>> clazz, Class<? extends Job> branchProjectClass) Explicit constructor to use when type inference fails. -
Method Summary
Modifier and TypeMethodDescriptionReturns the base class of the projects that are produced by this factory.abstract booleanisApplicable(Class<? extends MultiBranchProject> clazz) Returnstrueif and only if thisBranchPropertyDescriptoris applicable in the specified type ofMultiBranchProject.Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, configure, configure, doHelp, doHelp, find, find, findByDescribableClassName, findById, getCategory, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getDisplayName, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getRequiredGlobalConfigPagePermission, getStaticHelpUrl, getStaticHelpUrl, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
Constructor Details
-
BranchProjectFactoryDescriptor
protected BranchProjectFactoryDescriptor(Class<? extends BranchProjectFactory<?, ?>> clazz, Class<? extends Job> branchProjectClass) Explicit constructor to use when type inference fails.- Parameters:
clazz- theBranchProjectFactorythat this descriptor is for.branchProjectClass- theJobtype that theBranchProjectFactorycreates.- Since:
- 2.0
-
BranchProjectFactoryDescriptor
Semi explicit constructor to use when the descriptor is not an inner class of theBranchProjectFactory.- Parameters:
clazz- theBranchProjectFactorythat this descriptor is for.- Since:
- 2.0
-
BranchProjectFactoryDescriptor
protected BranchProjectFactoryDescriptor()Fully inferring constructor to use when the descriptor is an inner class of theBranchProjectFactoryand type parameter inference works because it just should work.- Since:
- 2.0
-
-
Method Details
-
getProjectClass
Returns the base class of the projects that are produced by this factory.- Returns:
- the base class of the projects that are produced by this factory.
- Since:
- 2.0
-
isApplicable
Returnstrueif and only if thisBranchPropertyDescriptoris applicable in the specified type ofMultiBranchProject.- Parameters:
clazz- the type ofMultiBranchProject.- Returns:
trueif this factory can be used in theMultiBranchProject.
-