Package hudson.model
Class AbstractDescribableImpl<T extends AbstractDescribableImpl<T>>
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<T>
-
- All Implemented Interfaces:
Describable<T>
- Direct Known Subclasses:
ArtifactManagerFactory,AuthorizationStrategy,BuildDiscarder,BuildWrapper,CaptchaSupport,ComputerConnector,ComputerLauncher,FingerprintStorage,GlobalBuildDiscarderStrategy,GlobalSettingsProvider,IdStrategy,LabelAtomProperty,MarkupFormatter,MyViewsTabBar,ProxyConfiguration,QueueItemAuthenticator,RepositoryBrowser,RetentionStrategy,SCMCheckoutStrategy,SecurityRealm,SettingsProvider,ToolInstallation,User.CanonicalIdResolver,ViewsTabBar
public abstract class AbstractDescribableImpl<T extends AbstractDescribableImpl<T>> extends Object implements Describable<T>
Partial default implementation ofDescribable.- Author:
- Kohsuke Kawaguchi
-
-
Constructor Summary
Constructors Constructor Description AbstractDescribableImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Descriptor<T>getDescriptor()By default looks for a nested class (conventionally namedDescriptorImpl) implementingDescriptorand marked withExtension.
-
-
-
Method Detail
-
getDescriptor
public Descriptor<T> getDescriptor()
By default looks for a nested class (conventionally namedDescriptorImpl) implementingDescriptorand marked withExtension.Gets the descriptor for this instance.
Descriptoris a singleton for every concreteDescribableimplementation, so ifa.getClass() == b.getClass()then by defaulta.getDescriptor() == b.getDescriptor()as well. (In rare cases a single implementation class may be used for instances with distinct descriptors.)- Specified by:
getDescriptorin interfaceDescribable<T extends AbstractDescribableImpl<T>>
-
-