mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-16 21:42:27 +00:00
fixed a problem in the initialization order issue.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@9414 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
05f5266892
commit
5450534dc8
3 files changed
+14
-4
No files matched your search
@@ -99,4 +99,8 @@ public class CommandStartMethod extends ComputerStartMethod {
|
||||
}
|
||||
|
||||
private static final Logger LOGGER = Logger.getLogger(CommandStartMethod.class.getName());
|
||||
|
||||
static {
|
||||
LIST.add(DESCRIPTOR);
|
||||
}
|
||||
}
|
||||
@@ -45,8 +45,10 @@ public abstract class ComputerStartMethod implements Describable<ComputerStartMe
|
||||
/**
|
||||
* All registered {@link ComputerStartMethod} implementations.
|
||||
*/
|
||||
public static final DescriptorList<ComputerStartMethod> LIST = new DescriptorList<ComputerStartMethod>(
|
||||
JNLPStartMethod.DESCRIPTOR,
|
||||
CommandStartMethod.DESCRIPTOR
|
||||
);
|
||||
public static final DescriptorList<ComputerStartMethod> LIST = new DescriptorList<ComputerStartMethod>();
|
||||
|
||||
static {
|
||||
LIST.load(JNLPStartMethod.class);
|
||||
LIST.load(CommandStartMethod.class);
|
||||
}
|
||||
}
|
||||
@@ -33,4 +33,8 @@ public class JNLPStartMethod extends ComputerStartMethod {
|
||||
return "Launch slave agents via JNLP";
|
||||
}
|
||||
};
|
||||
|
||||
static {
|
||||
LIST.add(DESCRIPTOR);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user