doc improvement

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15655 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2009-02-24 18:18:28 +00:00
1 parent 35cc0e5b33
commit 5e5bc93b78
1 file changed
+6
@@ -700,6 +700,12 @@ public final class Hudson extends Node implements ItemGroup<TopLevelItem>, Stapl
return null;
}
/**
* Gets the {@link Descriptor} that corresponds to the given {@link Describable} type.
* <p>
* If you have an instance of {@code type} and call {@link Describable#getDescriptor()},
* you'll get the same instance that this method returns.
*/
public Descriptor getDescriptor(Class<? extends Describable> type) {
for( Descriptor d : getExtensionList(Descriptor.class) )
if(d.clazz==type)