提交 f7445010 编写于 作者: K kohsuke

LogTaskListener needs to be remoteable, and clarified the remotable semantics of TaskListener.

See http://n4.nabble.com/Hudson-dev-f387835.html

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@29210 71c3de6d-444a-0410-be80-ed276b4c234a
上级 37b4a3fd
......@@ -50,6 +50,7 @@ import java.util.Formatter;
*
* <p>
* {@link StreamTaskListener} is the most typical implementation of this interface.
* All the {@link TaskListener} implementations passed to plugins from Hudson core are remotable.
*
* @author Kohsuke Kawaguchi
*/
......
......@@ -31,6 +31,7 @@ import java.io.IOException;
import java.io.OutputStream;
import java.io.PrintStream;
import java.io.PrintWriter;
import java.io.Serializable;
import java.util.logging.Level;
import java.util.logging.LogRecord;
import java.util.logging.Logger;
......@@ -38,7 +39,7 @@ import java.util.logging.Logger;
/**
* {@link TaskListener} which sends messages to a {@link Logger}.
*/
public class LogTaskListener implements TaskListener {
public class LogTaskListener implements TaskListener, Serializable {
private final TaskListener delegate;
......@@ -114,4 +115,5 @@ public class LogTaskListener implements TaskListener {
}
private static final long serialVersionUID = 1L;
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册