提交 b1f5d28f 编写于 作者: K Kohsuke Kawaguchi

doc improvements based on Jesse's comments

上级 6a3743a5
...@@ -63,6 +63,8 @@ Upcoming changes</a> ...@@ -63,6 +63,8 @@ Upcoming changes</a>
(<a href="https://issues.jenkins-ci.org/browse/JENKINS-17125">issue 17125</a>) (<a href="https://issues.jenkins-ci.org/browse/JENKINS-17125">issue 17125</a>)
<li class='rfe'> <li class='rfe'>
Improved the tracking of queued jobs and their eventual builds in the REST API. Improved the tracking of queued jobs and their eventual builds in the REST API.
<li class='rfe'>
Added a new extension point to contribute custom plexus components into Maven for the maven project type.
</ul> </ul>
</div><!--=TRUNK-END=--> </div><!--=TRUNK-END=-->
......
...@@ -741,6 +741,8 @@ public class Queue extends ResourceController implements Saveable { ...@@ -741,6 +741,8 @@ public class Queue extends ResourceController implements Saveable {
/** /**
* Returns the snapshot of all {@link LeftItem}s. * Returns the snapshot of all {@link LeftItem}s.
*
* @since 1.519
*/ */
public Collection<LeftItem> getLeftItems() { public Collection<LeftItem> getLeftItems() {
return Collections.unmodifiableCollection(leftItems.asMap().values()); return Collections.unmodifiableCollection(leftItems.asMap().values());
...@@ -1444,6 +1446,7 @@ public class Queue extends ResourceController implements Saveable { ...@@ -1444,6 +1446,7 @@ public class Queue extends ResourceController implements Saveable {
* *
* @return * @return
* URL that ends with '/'. * URL that ends with '/'.
* @since 1.519
*/ */
@Exported @Exported
public String getUrl() { public String getUrl() {
...@@ -1741,6 +1744,8 @@ public class Queue extends ResourceController implements Saveable { ...@@ -1741,6 +1744,8 @@ public class Queue extends ResourceController implements Saveable {
/** /**
* {@link Item} in the {@link Queue#leftItems} stage. These are items that had left the queue * {@link Item} in the {@link Queue#leftItems} stage. These are items that had left the queue
* by either began executing or by getting cancelled. * by either began executing or by getting cancelled.
*
* @since 1.519
*/ */
public final static class LeftItem extends Item { public final static class LeftItem extends Item {
public final WorkUnitContext outcome; public final WorkUnitContext outcome;
......
...@@ -27,6 +27,8 @@ import hudson.model.Executor; ...@@ -27,6 +27,8 @@ import hudson.model.Executor;
import hudson.model.Queue; import hudson.model.Queue;
import hudson.model.Queue.Executable; import hudson.model.Queue.Executable;
import hudson.model.Queue.Task; import hudson.model.Queue.Task;
import org.kohsuke.accmod.Restricted;
import org.kohsuke.accmod.restrictions.NoExternalUse;
import org.kohsuke.stapler.export.ExportedBean; import org.kohsuke.stapler.export.ExportedBean;
/** /**
...@@ -76,6 +78,10 @@ public final class WorkUnit { ...@@ -76,6 +78,10 @@ public final class WorkUnit {
return executable; return executable;
} }
/**
* This method is only meant to be called internally by {@link Executor}.
*/
@Restricted(NoExternalUse.class)
public void setExecutable(Executable executable) { public void setExecutable(Executable executable) {
this.executable = executable; this.executable = executable;
} }
......
...@@ -260,6 +260,7 @@ public abstract class AbstractMavenProcessFactory ...@@ -260,6 +260,7 @@ public abstract class AbstractMavenProcessFactory
/** /**
* Apply extension plexus modules to the newly launched Maven process. * Apply extension plexus modules to the newly launched Maven process.
* @since 1.519
*/ */
protected abstract void applyPlexusModuleContributor(Channel channel) throws InterruptedException, IOException; protected abstract void applyPlexusModuleContributor(Channel channel) throws InterruptedException, IOException;
......
...@@ -192,6 +192,7 @@ public class MavenEmbedderRequest ...@@ -192,6 +192,7 @@ public class MavenEmbedderRequest
/** /**
* Default value of {@link #getClassLoader()} * Default value of {@link #getClassLoader()}
* @since 1.519
*/ */
public static ClassLoader getDefaultMavenClassLoader() { public static ClassLoader getDefaultMavenClassLoader() {
return new MaskingClassLoader( MavenUtil.class.getClassLoader() ); return new MaskingClassLoader( MavenUtil.class.getClassLoader() );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册