1 package hudson.scm; 2 3 import hudson.ExtensionPoint; 4 import hudson.MarkupText; 5 import hudson.util.CopyOnWriteList; 6 import hudson.scm.ChangeLogSet.Entry; 7 import hudson.model.AbstractBuild; 8 9 import java.util.logging.Logger ; 10 11 26 public abstract class ChangeLogAnnotator implements ExtensionPoint { 27 52 public abstract void annotate(AbstractBuild<?,?> build, Entry change, MarkupText text ); 53 54 58 public final void register() { 59 annotators.add(this); 60 } 61 62 65 public final boolean unregister() { 66 return annotators.remove(this); 67 } 68 69 72 public static final CopyOnWriteList<ChangeLogAnnotator> annotators = new CopyOnWriteList<ChangeLogAnnotator>(); 73 } 74 | Popular Tags |