Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
jenkins
提交
e1c40288
J
jenkins
项目概览
xxadev
/
jenkins
与 Fork 源项目一致
从无法访问的项目Fork
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
J
jenkins
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
e1c40288
编写于
3月 19, 2016
作者:
K
Kohsuke Kawaguchi
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
More symbol names
上级
f315e638
变更
61
隐藏空白更改
内联
并排
Showing
61 changed file
with
135 addition
and
73 deletion
+135
-73
core/src/main/java/hudson/PluginManager.java
core/src/main/java/hudson/PluginManager.java
+3
-2
core/src/main/java/hudson/ProxyConfiguration.java
core/src/main/java/hudson/ProxyConfiguration.java
+2
-1
core/src/main/java/hudson/console/HudsonExceptionNote.java
core/src/main/java/hudson/console/HudsonExceptionNote.java
+2
-1
core/src/main/java/hudson/console/HyperlinkNote.java
core/src/main/java/hudson/console/HyperlinkNote.java
+2
-1
core/src/main/java/hudson/console/ModelHyperlinkNote.java
core/src/main/java/hudson/console/ModelHyperlinkNote.java
+2
-1
core/src/main/java/hudson/diagnosis/HudsonHomeDiskUsageChecker.java
...ain/java/hudson/diagnosis/HudsonHomeDiskUsageChecker.java
+2
-1
core/src/main/java/hudson/diagnosis/HudsonHomeDiskUsageMonitor.java
...ain/java/hudson/diagnosis/HudsonHomeDiskUsageMonitor.java
+2
-1
core/src/main/java/hudson/diagnosis/MemoryUsageMonitor.java
core/src/main/java/hudson/diagnosis/MemoryUsageMonitor.java
+2
-1
core/src/main/java/hudson/diagnosis/NullIdDescriptorMonitor.java
...c/main/java/hudson/diagnosis/NullIdDescriptorMonitor.java
+2
-1
core/src/main/java/hudson/diagnosis/OldDataMonitor.java
core/src/main/java/hudson/diagnosis/OldDataMonitor.java
+3
-2
core/src/main/java/hudson/model/FreeStyleProject.java
core/src/main/java/hudson/model/FreeStyleProject.java
+2
-1
core/src/main/java/hudson/model/JDK.java
core/src/main/java/hudson/model/JDK.java
+2
-1
core/src/main/java/hudson/model/LoadStatistics.java
core/src/main/java/hudson/model/LoadStatistics.java
+2
-1
core/src/main/java/hudson/model/ManageJenkinsAction.java
core/src/main/java/hudson/model/ManageJenkinsAction.java
+2
-1
core/src/main/java/hudson/model/MyView.java
core/src/main/java/hudson/model/MyView.java
+2
-1
core/src/main/java/hudson/model/MyViewsProperty.java
core/src/main/java/hudson/model/MyViewsProperty.java
+3
-2
core/src/main/java/hudson/model/PaneStatusProperties.java
core/src/main/java/hudson/model/PaneStatusProperties.java
+2
-1
core/src/main/java/hudson/model/PasswordParameterDefinition.java
...c/main/java/hudson/model/PasswordParameterDefinition.java
+2
-1
core/src/main/java/hudson/model/ProxyView.java
core/src/main/java/hudson/model/ProxyView.java
+2
-1
core/src/main/java/hudson/scm/NullSCM.java
core/src/main/java/hudson/scm/NullSCM.java
+2
-1
core/src/main/java/hudson/security/GlobalSecurityConfiguration.java
...ain/java/hudson/security/GlobalSecurityConfiguration.java
+3
-2
core/src/main/java/hudson/security/HudsonPrivateSecurityRealm.java
...main/java/hudson/security/HudsonPrivateSecurityRealm.java
+4
-3
core/src/main/java/hudson/security/LegacyAuthorizationStrategy.java
...ain/java/hudson/security/LegacyAuthorizationStrategy.java
+2
-1
core/src/main/java/hudson/security/LegacySecurityRealm.java
core/src/main/java/hudson/security/LegacySecurityRealm.java
+2
-1
core/src/main/java/hudson/security/csrf/GlobalCrumbIssuerConfiguration.java
.../hudson/security/csrf/GlobalCrumbIssuerConfiguration.java
+2
-1
core/src/main/java/hudson/slaves/NodeProvisioner.java
core/src/main/java/hudson/slaves/NodeProvisioner.java
+2
-1
core/src/main/java/hudson/slaves/RetentionStrategy.java
core/src/main/java/hudson/slaves/RetentionStrategy.java
+2
-1
core/src/main/java/hudson/tasks/LogRotator.java
core/src/main/java/hudson/tasks/LogRotator.java
+2
-1
core/src/main/java/hudson/tasks/Maven.java
core/src/main/java/hudson/tasks/Maven.java
+4
-3
core/src/main/java/hudson/tasks/_maven/Maven3MojoNote.java
core/src/main/java/hudson/tasks/_maven/Maven3MojoNote.java
+2
-1
core/src/main/java/hudson/tasks/_maven/MavenErrorNote.java
core/src/main/java/hudson/tasks/_maven/MavenErrorNote.java
+2
-1
core/src/main/java/hudson/tasks/_maven/MavenMojoNote.java
core/src/main/java/hudson/tasks/_maven/MavenMojoNote.java
+2
-1
core/src/main/java/hudson/tasks/_maven/MavenWarningNote.java
core/src/main/java/hudson/tasks/_maven/MavenWarningNote.java
+2
-1
core/src/main/java/hudson/tools/InstallSourceProperty.java
core/src/main/java/hudson/tools/InstallSourceProperty.java
+2
-1
core/src/main/java/hudson/tools/JDKInstaller.java
core/src/main/java/hudson/tools/JDKInstaller.java
+3
-2
core/src/main/java/hudson/views/GlobalDefaultViewConfiguration.java
...ain/java/hudson/views/GlobalDefaultViewConfiguration.java
+2
-1
core/src/main/java/hudson/views/LastDurationColumn.java
core/src/main/java/hudson/views/LastDurationColumn.java
+2
-1
core/src/main/java/hudson/views/LastFailureColumn.java
core/src/main/java/hudson/views/LastFailureColumn.java
+2
-1
core/src/main/java/hudson/views/LastStableColumn.java
core/src/main/java/hudson/views/LastStableColumn.java
+2
-1
core/src/main/java/hudson/views/LastSuccessColumn.java
core/src/main/java/hudson/views/LastSuccessColumn.java
+2
-1
core/src/main/java/hudson/views/MyViewsTabBar.java
core/src/main/java/hudson/views/MyViewsTabBar.java
+2
-1
core/src/main/java/jenkins/diagnosis/HsErrPidList.java
core/src/main/java/jenkins/diagnosis/HsErrPidList.java
+3
-1
core/src/main/java/jenkins/management/NodesLink.java
core/src/main/java/jenkins/management/NodesLink.java
+2
-1
core/src/main/java/jenkins/management/PluginsLink.java
core/src/main/java/jenkins/management/PluginsLink.java
+2
-1
core/src/main/java/jenkins/management/ReloadLink.java
core/src/main/java/jenkins/management/ReloadLink.java
+2
-1
core/src/main/java/jenkins/model/GlobalCloudConfiguration.java
...src/main/java/jenkins/model/GlobalCloudConfiguration.java
+2
-1
core/src/main/java/jenkins/model/GlobalConfigurationCategory.java
.../main/java/jenkins/model/GlobalConfigurationCategory.java
+3
-2
core/src/main/java/jenkins/model/GlobalNodePropertiesConfiguration.java
...java/jenkins/model/GlobalNodePropertiesConfiguration.java
+2
-1
core/src/main/java/jenkins/model/GlobalPluginConfiguration.java
...rc/main/java/jenkins/model/GlobalPluginConfiguration.java
+2
-1
core/src/main/java/jenkins/model/GlobalProjectNamingStrategyConfiguration.java
...nkins/model/GlobalProjectNamingStrategyConfiguration.java
+2
-1
core/src/main/java/jenkins/model/GlobalQuietPeriodConfiguration.java
...in/java/jenkins/model/GlobalQuietPeriodConfiguration.java
+2
-1
core/src/main/java/jenkins/model/GlobalSCMRetryCountConfiguration.java
.../java/jenkins/model/GlobalSCMRetryCountConfiguration.java
+2
-1
core/src/main/java/jenkins/model/IdStrategy.java
core/src/main/java/jenkins/model/IdStrategy.java
+3
-2
core/src/main/java/jenkins/model/MasterBuildConfiguration.java
...src/main/java/jenkins/model/MasterBuildConfiguration.java
+2
-1
core/src/main/java/jenkins/model/ProjectNamingStrategy.java
core/src/main/java/jenkins/model/ProjectNamingStrategy.java
+3
-2
core/src/main/java/jenkins/mvn/GlobalMavenConfig.java
core/src/main/java/jenkins/mvn/GlobalMavenConfig.java
+2
-1
core/src/main/java/jenkins/security/LastGrantedAuthoritiesProperty.java
...java/jenkins/security/LastGrantedAuthoritiesProperty.java
+2
-1
core/src/main/java/jenkins/security/QueueItemAuthenticatorConfiguration.java
...jenkins/security/QueueItemAuthenticatorConfiguration.java
+2
-1
core/src/main/java/jenkins/security/RekeySecretAdminMonitor.java
...c/main/java/jenkins/security/RekeySecretAdminMonitor.java
+2
-1
core/src/main/java/jenkins/slaves/JnlpSlaveAgentProtocol.java
.../src/main/java/jenkins/slaves/JnlpSlaveAgentProtocol.java
+2
-1
core/src/main/java/jenkins/slaves/JnlpSlaveAgentProtocol2.java
...src/main/java/jenkins/slaves/JnlpSlaveAgentProtocol2.java
+2
-1
未找到文件。
core/src/main/java/hudson/PluginManager.java
浏览文件 @
e1c40288
...
...
@@ -63,6 +63,7 @@ import org.apache.commons.io.FileUtils;
import
org.apache.commons.io.FilenameUtils
;
import
org.apache.commons.io.IOUtils
;
import
org.apache.commons.logging.LogFactory
;
import
org.jenkinsci.Symbol
;
import
org.jenkinsci.bytecode.Transformer
;
import
org.jvnet.hudson.reactor.Executable
;
import
org.jvnet.hudson.reactor.Reactor
;
...
...
@@ -1642,7 +1643,7 @@ public abstract class PluginManager extends AbstractModelObject implements OnMas
/**
* {@link AdministrativeMonitor} that checks if there are any plugins with cycle dependencies.
*/
@Extension
@Extension
@Symbol
(
"pluginCycleDependencies"
)
public
static
final
class
PluginCycleDependenciesMonitor
extends
AdministrativeMonitor
{
private
transient
volatile
boolean
isActive
=
false
;
...
...
@@ -1671,7 +1672,7 @@ public abstract class PluginManager extends AbstractModelObject implements OnMas
* {@link AdministrativeMonitor} that informs the administrator about a required plugin update.
* @since 1.491
*/
@Extension
@Extension
@Symbol
(
"pluginUpdate"
)
public
static
final
class
PluginUpdateMonitor
extends
AdministrativeMonitor
{
private
Map
<
String
,
PluginUpdateInfo
>
pluginsToBeUpdated
=
new
HashMap
<
String
,
PluginManager
.
PluginUpdateMonitor
.
PluginUpdateInfo
>();
...
...
core/src/main/java/hudson/ProxyConfiguration.java
浏览文件 @
e1c40288
...
...
@@ -53,6 +53,7 @@ import org.apache.commons.httpclient.HttpClient;
import
org.apache.commons.httpclient.UsernamePasswordCredentials
;
import
org.apache.commons.httpclient.auth.AuthScope
;
import
org.apache.commons.httpclient.methods.GetMethod
;
import
org.jenkinsci.Symbol
;
import
org.jvnet.robust_http_client.RetryableHttpStream
;
import
org.kohsuke.stapler.DataBoundConstructor
;
import
org.kohsuke.stapler.QueryParameter
;
...
...
@@ -272,7 +273,7 @@ public final class ProxyConfiguration extends AbstractDescribableImpl<ProxyConfi
XSTREAM
.
alias
(
"proxy"
,
ProxyConfiguration
.
class
);
}
@Extension
@Extension
@Symbol
(
"proxy"
)
public
static
class
DescriptorImpl
extends
Descriptor
<
ProxyConfiguration
>
{
@Override
public
String
getDisplayName
()
{
...
...
core/src/main/java/hudson/console/HudsonExceptionNote.java
浏览文件 @
e1c40288
...
...
@@ -25,6 +25,7 @@ package hudson.console;
import
hudson.Extension
;
import
hudson.MarkupText
;
import
org.jenkinsci.Symbol
;
import
java.util.regex.Matcher
;
import
java.util.regex.Pattern
;
...
...
@@ -95,7 +96,7 @@ public class HudsonExceptionNote extends ConsoleNote<Object> {
return
"http://stacktrace.jenkins-ci.org/search?query="
+
className
;
}
@Extension
@Extension
@Symbol
(
"stackTrace"
)
public
static
final
class
DescriptorImpl
extends
ConsoleAnnotationDescriptor
{
@Override
public
String
getDisplayName
()
{
...
...
core/src/main/java/hudson/console/HyperlinkNote.java
浏览文件 @
e1c40288
...
...
@@ -26,6 +26,7 @@ package hudson.console;
import
hudson.Extension
;
import
hudson.MarkupText
;
import
jenkins.model.Jenkins
;
import
org.jenkinsci.Symbol
;
import
org.kohsuke.stapler.Stapler
;
import
org.kohsuke.stapler.StaplerRequest
;
...
...
@@ -83,7 +84,7 @@ public class HyperlinkNote extends ConsoleNote {
}
}
@Extension
@Extension
@Symbol
(
"hyperlink"
)
public
static
class
DescriptorImpl
extends
ConsoleAnnotationDescriptor
{
public
String
getDisplayName
()
{
return
"Hyperlinks"
;
...
...
core/src/main/java/hudson/console/ModelHyperlinkNote.java
浏览文件 @
e1c40288
...
...
@@ -3,6 +3,7 @@ package hudson.console;
import
hudson.Extension
;
import
hudson.model.*
;
import
jenkins.model.Jenkins
;
import
org.jenkinsci.Symbol
;
import
java.io.IOException
;
import
java.util.logging.Level
;
...
...
@@ -64,7 +65,7 @@ public class ModelHyperlinkNote extends HyperlinkNote {
}
}
@Extension
@Extension
@Symbol
(
"hyperlinkToModels"
)
public
static
class
DescriptorImpl
extends
HyperlinkNote
.
DescriptorImpl
{
public
String
getDisplayName
()
{
return
"Hyperlinks to models"
;
...
...
core/src/main/java/hudson/diagnosis/HudsonHomeDiskUsageChecker.java
浏览文件 @
e1c40288
...
...
@@ -26,6 +26,7 @@ package hudson.diagnosis;
import
hudson.Extension
;
import
jenkins.model.Jenkins
;
import
hudson.model.PeriodicWork
;
import
org.jenkinsci.Symbol
;
import
java.util.logging.Logger
;
...
...
@@ -35,7 +36,7 @@ import java.util.logging.Logger;
*
* @author Kohsuke Kawaguchi
*/
@Extension
@Extension
@Symbol
(
"diskUsageCheck"
)
public
class
HudsonHomeDiskUsageChecker
extends
PeriodicWork
{
public
long
getRecurrencePeriod
()
{
return
HOUR
;
...
...
core/src/main/java/hudson/diagnosis/HudsonHomeDiskUsageMonitor.java
浏览文件 @
e1c40288
...
...
@@ -28,6 +28,7 @@ import hudson.model.AbstractModelObject;
import
hudson.Extension
;
import
hudson.ExtensionPoint
;
import
hudson.ExtensionList
;
import
org.jenkinsci.Symbol
;
import
org.kohsuke.stapler.HttpResponse
;
import
org.kohsuke.stapler.HttpResponses
;
import
org.kohsuke.stapler.QueryParameter
;
...
...
@@ -40,7 +41,7 @@ import java.util.List;
*
* @author Kohsuke Kawaguchi
*/
@Extension
@Extension
@Symbol
(
"diskUsageCheck"
)
public
final
class
HudsonHomeDiskUsageMonitor
extends
AdministrativeMonitor
{
/**
* Value updated by {@link HudsonHomeDiskUsageChecker}.
...
...
core/src/main/java/hudson/diagnosis/MemoryUsageMonitor.java
浏览文件 @
e1c40288
...
...
@@ -39,6 +39,7 @@ import java.util.List;
import
java.util.ArrayList
;
import
java.io.IOException
;
import
org.jenkinsci.Symbol
;
import
org.kohsuke.stapler.QueryParameter
;
/**
...
...
@@ -46,7 +47,7 @@ import org.kohsuke.stapler.QueryParameter;
*
* @author Kohsuke Kawaguchi
*/
@Extension
@Extension
@Symbol
(
"memoryUsage"
)
public
final
class
MemoryUsageMonitor
extends
PeriodicWork
{
/**
* A memory group is conceptually a set of memory pools.
...
...
core/src/main/java/hudson/diagnosis/NullIdDescriptorMonitor.java
浏览文件 @
e1c40288
...
...
@@ -29,6 +29,7 @@ import hudson.init.Initializer;
import
hudson.model.AdministrativeMonitor
;
import
hudson.model.Descriptor
;
import
jenkins.model.Jenkins
;
import
org.jenkinsci.Symbol
;
import
java.text.MessageFormat
;
import
java.util.ArrayList
;
...
...
@@ -46,7 +47,7 @@ import static hudson.init.InitMilestone.EXTENSIONS_AUGMENTED;
* @author Kohsuke Kawaguchi
* @since 1.402
*/
@Extension
@Extension
@Symbol
(
"nullId"
)
public
class
NullIdDescriptorMonitor
extends
AdministrativeMonitor
{
private
final
List
<
Descriptor
>
problems
=
new
ArrayList
<
Descriptor
>();
...
...
core/src/main/java/hudson/diagnosis/OldDataMonitor.java
浏览文件 @
e1c40288
...
...
@@ -55,6 +55,7 @@ import javax.annotation.CheckForNull;
import
jenkins.model.Jenkins
;
import
org.acegisecurity.context.SecurityContext
;
import
org.acegisecurity.context.SecurityContextHolder
;
import
org.jenkinsci.Symbol
;
import
org.kohsuke.accmod.Restricted
;
import
org.kohsuke.accmod.restrictions.NoExternalUse
;
import
org.kohsuke.stapler.HttpRedirect
;
...
...
@@ -70,7 +71,7 @@ import org.kohsuke.stapler.interceptor.RequirePOST;
*
* @author Alan.Harder@Sun.Com
*/
@Extension
@Extension
@Symbol
(
"oldData"
)
public
class
OldDataMonitor
extends
AdministrativeMonitor
{
private
static
final
Logger
LOGGER
=
Logger
.
getLogger
(
OldDataMonitor
.
class
.
getName
());
...
...
@@ -432,7 +433,7 @@ public class OldDataMonitor extends AdministrativeMonitor {
}
}
@Extension
@Extension
@Symbol
(
"oldData"
)
public
static
class
ManagementLinkImpl
extends
ManagementLink
{
@Override
public
String
getIconFileName
()
{
...
...
core/src/main/java/hudson/model/FreeStyleProject.java
浏览文件 @
e1c40288
...
...
@@ -25,6 +25,7 @@ package hudson.model;
import
hudson.Extension
;
import
jenkins.model.Jenkins
;
import
org.jenkinsci.Symbol
;
import
org.kohsuke.accmod.Restricted
;
import
org.kohsuke.accmod.restrictions.NoExternalUse
;
...
...
@@ -66,7 +67,7 @@ public class FreeStyleProject extends Project<FreeStyleProject,FreeStyleBuild> i
@Restricted
(
NoExternalUse
.
class
)
public
static
/*almost final*/
DescriptorImpl
DESCRIPTOR
;
@Extension
(
ordinal
=
1000
)
@Extension
(
ordinal
=
1000
)
@Symbol
({
"freeStyle"
,
"freeStyleJob"
})
public
static
class
DescriptorImpl
extends
AbstractProjectDescriptor
{
public
DescriptorImpl
()
{
DESCRIPTOR
=
this
;
...
...
core/src/main/java/hudson/model/JDK.java
浏览文件 @
e1c40288
...
...
@@ -44,6 +44,7 @@ import java.util.Arrays;
import
java.util.Collections
;
import
jenkins.model.Jenkins
;
import
org.jenkinsci.Symbol
;
import
org.kohsuke.stapler.DataBoundConstructor
;
import
org.kohsuke.accmod.Restricted
;
import
org.kohsuke.accmod.restrictions.NoExternalUse
;
...
...
@@ -166,7 +167,7 @@ public final class JDK extends ToolInstallation implements NodeSpecific<JDK>, En
}
}
@Extension
@Extension
@Symbol
(
"jdk"
)
public
static
class
DescriptorImpl
extends
ToolDescriptor
<
JDK
>
{
public
String
getDisplayName
()
{
...
...
core/src/main/java/hudson/model/LoadStatistics.java
浏览文件 @
e1c40288
...
...
@@ -31,6 +31,7 @@ import hudson.model.queue.Tasks;
import
hudson.util.ColorPalette
;
import
hudson.util.NoOverlapCategoryAxis
;
import
jenkins.model.Jenkins
;
import
org.jenkinsci.Symbol
;
import
org.jfree.chart.ChartFactory
;
import
org.jfree.chart.JFreeChart
;
import
org.jfree.chart.axis.CategoryAxis
;
...
...
@@ -380,7 +381,7 @@ public abstract class LoadStatistics {
/**
* Periodically update the load statistics average.
*/
@Extension
@Extension
@Symbol
(
"loadStatistics"
)
public
static
class
LoadStatisticsUpdater
extends
PeriodicWork
{
public
long
getRecurrencePeriod
()
{
return
CLOCK
;
...
...
core/src/main/java/hudson/model/ManageJenkinsAction.java
浏览文件 @
e1c40288
...
...
@@ -25,13 +25,14 @@ package hudson.model;
import
hudson.Extension
;
import
jenkins.model.Jenkins
;
import
org.jenkinsci.Symbol
;
/**
* Adds the "Manage Jenkins" link to the top page.
*
* @author Kohsuke Kawaguchi
*/
@Extension
(
ordinal
=
100
)
@Extension
(
ordinal
=
100
)
@Symbol
(
"manageJenkins"
)
public
class
ManageJenkinsAction
implements
RootAction
{
public
String
getIconFileName
()
{
if
(
Jenkins
.
getInstance
().
hasPermission
(
Jenkins
.
ADMINISTER
))
...
...
core/src/main/java/hudson/model/MyView.java
浏览文件 @
e1c40288
...
...
@@ -32,6 +32,7 @@ import java.util.List;
import
javax.servlet.ServletException
;
import
jenkins.model.Jenkins
;
import
org.jenkinsci.Symbol
;
import
org.kohsuke.stapler.StaplerRequest
;
import
org.kohsuke.stapler.StaplerResponse
;
import
org.kohsuke.stapler.DataBoundConstructor
;
...
...
@@ -93,7 +94,7 @@ public class MyView extends View {
// noop
}
@Extension
@Extension
@Symbol
(
"myView"
)
public
static
final
class
DescriptorImpl
extends
ViewDescriptor
{
/**
* If the security is not enabled, there's no point in having
...
...
core/src/main/java/hudson/model/MyViewsProperty.java
浏览文件 @
e1c40288
...
...
@@ -45,6 +45,7 @@ import jenkins.model.Jenkins;
import
net.sf.json.JSONObject
;
import
org.acegisecurity.AccessDeniedException
;
import
org.jenkinsci.Symbol
;
import
org.kohsuke.stapler.DataBoundConstructor
;
import
org.kohsuke.stapler.HttpRedirect
;
import
org.kohsuke.stapler.HttpResponse
;
...
...
@@ -201,7 +202,7 @@ public class MyViewsProperty extends UserProperty implements ModifiableViewGroup
return
"my-views"
;
}
@Extension
@Extension
@Symbol
(
"myView"
)
public
static
class
DescriptorImpl
extends
UserPropertyDescriptor
{
@Override
...
...
@@ -242,7 +243,7 @@ public class MyViewsProperty extends UserProperty implements ModifiableViewGroup
return
Jenkins
.
getInstance
().
getMyViewsTabBar
();
}
@Extension
@Extension
@Symbol
(
"myView"
)
public
static
class
GlobalAction
implements
RootAction
{
public
String
getDisplayName
()
{
...
...
core/src/main/java/hudson/model/PaneStatusProperties.java
浏览文件 @
e1c40288
...
...
@@ -8,6 +8,7 @@ import java.io.IOException;
import
javax.servlet.http.HttpSession
;
import
org.jenkinsci.Symbol
;
import
org.kohsuke.stapler.Stapler
;
public
class
PaneStatusProperties
extends
UserProperty
implements
Saveable
{
...
...
@@ -43,7 +44,7 @@ public class PaneStatusProperties extends UserProperty implements Saveable {
return
this
;
}
@Extension
@Extension
@Symbol
(
"paneStatus"
)
public
static
class
DescriptorImpl
extends
UserPropertyDescriptor
{
@Override
...
...
core/src/main/java/hudson/model/PasswordParameterDefinition.java
浏览文件 @
e1c40288
...
...
@@ -24,6 +24,7 @@
package
hudson.model
;
import
net.sf.json.JSONObject
;
import
org.jenkinsci.Symbol
;
import
org.kohsuke.stapler.StaplerRequest
;
import
org.kohsuke.stapler.DataBoundConstructor
;
import
hudson.Extension
;
...
...
@@ -88,7 +89,7 @@ public class PasswordParameterDefinition extends SimpleParameterDefinition {
this
.
defaultValue
=
Secret
.
fromString
(
defaultValue
);
}
@Extension
@Extension
@Symbol
({
"password"
,
"nonStoredPasswordParam"
})
public
final
static
class
ParameterDescriptorImpl
extends
ParameterDescriptor
{
@Override
public
String
getDisplayName
()
{
...
...
core/src/main/java/hudson/model/ProxyView.java
浏览文件 @
e1c40288
...
...
@@ -32,6 +32,7 @@ import java.util.Collection;
import
javax.servlet.ServletException
;
import
jenkins.model.Jenkins
;
import
org.jenkinsci.Symbol
;
import
org.kohsuke.stapler.DataBoundConstructor
;
import
org.kohsuke.stapler.QueryParameter
;
import
org.kohsuke.stapler.Stapler
;
...
...
@@ -120,7 +121,7 @@ public class ProxyView extends View implements StaplerFallback {
return
FormValidation
.
error
(
Messages
.
ProxyView_NoSuchViewExists
(
value
));
}
@Extension
@Extension
@Symbol
(
"proxy"
)
public
static
class
DescriptorImpl
extends
ViewDescriptor
{
@Override
...
...
core/src/main/java/hudson/scm/NullSCM.java
浏览文件 @
e1c40288
...
...
@@ -32,6 +32,7 @@ import hudson.model.TaskListener;
import
java.io.File
;
import
java.io.IOException
;
import
net.sf.json.JSONObject
;
import
org.jenkinsci.Symbol
;
import
org.kohsuke.stapler.StaplerRequest
;
/**
...
...
@@ -58,7 +59,7 @@ public class NullSCM extends SCM {
return
NullChangeLogParser
.
INSTANCE
;
}
@Extension
(
ordinal
=
Integer
.
MAX_VALUE
)
@Extension
(
ordinal
=
Integer
.
MAX_VALUE
)
@Symbol
(
"none"
)
public
static
class
DescriptorImpl
extends
SCMDescriptor
<
NullSCM
>
{
public
DescriptorImpl
()
{
super
(
null
);
...
...
core/src/main/java/hudson/security/GlobalSecurityConfiguration.java
浏览文件 @
e1c40288
...
...
@@ -45,6 +45,7 @@ import jenkins.model.Jenkins;
import
jenkins.util.ServerTcpPort
;
import
net.sf.json.JSONObject
;
import
org.jenkinsci.Symbol
;
import
org.kohsuke.stapler.StaplerRequest
;
import
org.kohsuke.stapler.StaplerResponse
;
...
...
@@ -55,7 +56,7 @@ import org.kohsuke.stapler.StaplerResponse;
*
* @author Kohsuke Kawaguchi
*/
@Extension
(
ordinal
=
Integer
.
MAX_VALUE
-
210
)
@Extension
(
ordinal
=
Integer
.
MAX_VALUE
-
210
)
@Symbol
(
"securityConfig"
)
public
class
GlobalSecurityConfiguration
extends
ManagementLink
implements
Describable
<
GlobalSecurityConfiguration
>
{
private
static
final
Logger
LOGGER
=
Logger
.
getLogger
(
GlobalSecurityConfiguration
.
class
.
getName
());
...
...
@@ -167,7 +168,7 @@ public class GlobalSecurityConfiguration extends ManagementLink implements Descr
return
Jenkins
.
getInstance
().
getDescriptorOrDie
(
getClass
());
}
@Extension
@Extension
@Symbol
(
"security"
)
public
static
final
class
DescriptorImpl
extends
Descriptor
<
GlobalSecurityConfiguration
>
{
@Override
public
String
getDisplayName
()
{
...
...
core/src/main/java/hudson/security/HudsonPrivateSecurityRealm.java
浏览文件 @
e1c40288
...
...
@@ -54,6 +54,7 @@ import org.acegisecurity.providers.encoding.PasswordEncoder;
import
org.acegisecurity.providers.encoding.ShaPasswordEncoder
;
import
org.acegisecurity.userdetails.UserDetails
;
import
org.acegisecurity.userdetails.UsernameNotFoundException
;
import
org.jenkinsci.Symbol
;
import
org.kohsuke.stapler.DataBoundConstructor
;
import
org.kohsuke.stapler.ForwardToView
;
import
org.kohsuke.stapler.HttpResponse
;
...
...
@@ -563,7 +564,7 @@ public class HudsonPrivateSecurityRealm extends AbstractPasswordBasedSecurityRea
}
}
@Extension
@Extension
@Symbol
(
"password"
)
public
static
final
class
DescriptorImpl
extends
UserPropertyDescriptor
{
@Override
public
String
getDisplayName
()
{
...
...
@@ -603,7 +604,7 @@ public class HudsonPrivateSecurityRealm extends AbstractPasswordBasedSecurityRea
* Displays "manage users" link in the system config if {@link HudsonPrivateSecurityRealm}
* is in effect.
*/
@Extension
@Extension
@Symbol
(
"localUsers"
)
public
static
final
class
ManageUserLinks
extends
ManagementLink
{
public
String
getIconFileName
()
{
if
(
Jenkins
.
getInstance
().
getSecurityRealm
()
instanceof
HudsonPrivateSecurityRealm
)
...
...
@@ -714,7 +715,7 @@ public class HudsonPrivateSecurityRealm extends AbstractPasswordBasedSecurityRea
private
static
final
String
JBCRYPT_HEADER
=
"#jbcrypt:"
;
};
@Extension
@Extension
@Symbol
(
"local"
)
public
static
final
class
DescriptorImpl
extends
Descriptor
<
SecurityRealm
>
{
public
String
getDisplayName
()
{
return
Messages
.
HudsonPrivateSecurityRealm_DisplayName
();
...
...
core/src/main/java/hudson/security/LegacyAuthorizationStrategy.java
浏览文件 @
e1c40288
...
...
@@ -27,6 +27,7 @@ import hudson.Extension;
import
hudson.model.Descriptor
;
import
jenkins.model.Jenkins
;
import
org.acegisecurity.acls.sid.GrantedAuthoritySid
;
import
org.jenkinsci.Symbol
;
import
org.kohsuke.stapler.DataBoundConstructor
;
import
java.util.Collection
;
...
...
@@ -54,7 +55,7 @@ public final class LegacyAuthorizationStrategy extends AuthorizationStrategy {
return
Collections
.
singleton
(
"admin"
);
}
@Extension
@Extension
@Symbol
(
"legacy"
)
public
static
final
class
DescriptorImpl
extends
Descriptor
<
AuthorizationStrategy
>
{
public
String
getDisplayName
()
{
return
Messages
.
LegacyAuthorizationStrategy_DisplayName
();
...
...
core/src/main/java/hudson/security/LegacySecurityRealm.java
浏览文件 @
e1c40288
...
...
@@ -26,6 +26,7 @@ package hudson.security;
import
org.acegisecurity.AuthenticationManager
;
import
org.acegisecurity.Authentication
;
import
org.acegisecurity.AuthenticationException
;
import
org.jenkinsci.Symbol
;
import
org.kohsuke.accmod.Restricted
;
import
org.kohsuke.accmod.restrictions.NoExternalUse
;
import
org.springframework.web.context.WebApplicationContext
;
...
...
@@ -97,7 +98,7 @@ public final class LegacySecurityRealm extends SecurityRealm implements Authenti
@Restricted
(
NoExternalUse
.
class
)
public
static
/*almost final*/
Descriptor
<
SecurityRealm
>
DESCRIPTOR
;
@Extension
@Extension
@Symbol
(
"legacy"
)
public
static
class
DescriptorImpl
extends
Descriptor
<
SecurityRealm
>
{
public
DescriptorImpl
()
{
DESCRIPTOR
=
this
;
...
...
core/src/main/java/hudson/security/csrf/GlobalCrumbIssuerConfiguration.java
浏览文件 @
e1c40288
...
...
@@ -28,6 +28,7 @@ import jenkins.model.GlobalConfiguration;
import
jenkins.model.GlobalConfigurationCategory
;
import
jenkins.model.Jenkins
;
import
net.sf.json.JSONObject
;
import
org.jenkinsci.Symbol
;
import
org.kohsuke.stapler.StaplerRequest
;
/**
...
...
@@ -35,7 +36,7 @@ import org.kohsuke.stapler.StaplerRequest;
*
* @author Kohsuke Kawaguchi
*/
@Extension
(
ordinal
=
195
)
// immediately after the security setting
@Extension
(
ordinal
=
195
)
@Symbol
(
"crumb"
)
// immediately after the security setting
public
class
GlobalCrumbIssuerConfiguration
extends
GlobalConfiguration
{
@Override
public
GlobalConfigurationCategory
getCategory
()
{
...
...
core/src/main/java/hudson/slaves/NodeProvisioner.java
浏览文件 @
e1c40288
...
...
@@ -30,6 +30,7 @@ import jenkins.model.Jenkins;
import
static
hudson
.
model
.
LoadStatistics
.
DECAY
;
import
hudson.model.MultiStageTimeSeries.TimeScale
;
import
hudson.Extension
;
import
org.jenkinsci.Symbol
;
import
javax.annotation.Nonnull
;
import
javax.annotation.concurrent.GuardedBy
;
...
...
@@ -599,7 +600,7 @@ public class NodeProvisioner {
*
* @since 1.588
*/
@Extension
@Extension
@Symbol
(
"standard"
)
public
static
class
StandardStrategyImpl
extends
Strategy
{
/** {@inheritDoc} */
...
...
core/src/main/java/hudson/slaves/RetentionStrategy.java
浏览文件 @
e1c40288
...
...
@@ -32,6 +32,7 @@ import hudson.util.DescriptorList;
import
java.util.Collections
;
import
java.util.HashMap
;
import
jenkins.model.Jenkins
;
import
org.jenkinsci.Symbol
;
import
org.kohsuke.stapler.DataBoundConstructor
;
import
javax.annotation.concurrent.GuardedBy
;
...
...
@@ -164,7 +165,7 @@ public abstract class RetentionStrategy<T extends Computer> extends AbstractDesc
return
1
;
}
@Extension
(
ordinal
=
100
)
@Extension
(
ordinal
=
100
)
@Symbol
(
"always"
)
public
static
class
DescriptorImpl
extends
Descriptor
<
RetentionStrategy
<?>>
{
public
String
getDisplayName
()
{
return
Messages
.
RetentionStrategy_Always_displayName
();
...
...
core/src/main/java/hudson/tasks/LogRotator.java
浏览文件 @
e1c40288
...
...
@@ -29,6 +29,7 @@ import hudson.model.Job;
import
hudson.model.Run
;
import
jenkins.model.BuildDiscarder
;
import
jenkins.model.BuildDiscarderDescriptor
;
import
org.jenkinsci.Symbol
;
import
org.kohsuke.stapler.DataBoundConstructor
;
import
java.io.IOException
;
...
...
@@ -252,7 +253,7 @@ public class LogRotator extends BuildDiscarder {
return
String
.
valueOf
(
i
);
}
@Extension
@Extension
@Symbol
(
"logRotator"
)
public
static
final
class
LRDescriptor
extends
BuildDiscarderDescriptor
{
public
String
getDisplayName
()
{
return
"Log Rotation"
;
...
...
core/src/main/java/hudson/tasks/Maven.java
浏览文件 @
e1c40288
...
...
@@ -62,6 +62,7 @@ import jenkins.security.MasterToSlaveCallable;
import
net.sf.json.JSONObject
;
import
org.apache.commons.lang.StringUtils
;
import
org.jenkinsci.Symbol
;
import
org.kohsuke.stapler.DataBoundConstructor
;
import
org.kohsuke.stapler.StaplerRequest
;
...
...
@@ -388,7 +389,7 @@ public class Maven extends Builder {
@Deprecated
public
static
DescriptorImpl
DESCRIPTOR
;
@Extension
@Extension
@Symbol
(
"maven"
)
public
static
final
class
DescriptorImpl
extends
BuildStepDescriptor
<
Builder
>
{
@CopyOnWrite
private
volatile
MavenInstallation
[]
installations
=
new
MavenInstallation
[
0
];
...
...
@@ -624,7 +625,7 @@ public class Maven extends Builder {
return
new
MavenInstallation
(
getName
(),
translateFor
(
node
,
log
),
getProperties
().
toList
());
}
@Extension
@Extension
@Symbol
(
"maven"
)
public
static
class
DescriptorImpl
extends
ToolDescriptor
<
MavenInstallation
>
{
@Override
public
String
getDisplayName
()
{
...
...
@@ -682,7 +683,7 @@ public class Maven extends Builder {
super
(
id
);
}
@Extension
@Extension
@Symbol
(
"maven"
)
public
static
final
class
DescriptorImpl
extends
DownloadFromUrlInstaller
.
DescriptorImpl
<
MavenInstaller
>
{
public
String
getDisplayName
()
{
return
Messages
.
InstallFromApache
();
...
...
core/src/main/java/hudson/tasks/_maven/Maven3MojoNote.java
浏览文件 @
e1c40288
...
...
@@ -28,6 +28,7 @@ import hudson.MarkupText;
import
hudson.console.ConsoleAnnotationDescriptor
;
import
hudson.console.ConsoleAnnotator
;
import
hudson.console.ConsoleNote
;
import
org.jenkinsci.Symbol
;
import
java.util.regex.Pattern
;
...
...
@@ -57,7 +58,7 @@ public class Maven3MojoNote extends ConsoleNote {
return
null
;
}
@Extension
@Extension
@Symbol
(
"maven3Mojos"
)
public
static
final
class
DescriptorImpl
extends
ConsoleAnnotationDescriptor
{
public
String
getDisplayName
()
{
return
"Maven 3 Mojos"
;
...
...
core/src/main/java/hudson/tasks/_maven/MavenErrorNote.java
浏览文件 @
e1c40288
...
...
@@ -28,6 +28,7 @@ import hudson.MarkupText;
import
hudson.console.ConsoleAnnotationDescriptor
;
import
hudson.console.ConsoleAnnotator
;
import
hudson.console.ConsoleNote
;
import
org.jenkinsci.Symbol
;
import
java.util.regex.Pattern
;
...
...
@@ -44,7 +45,7 @@ public class MavenErrorNote extends ConsoleNote {
return
null
;
}
@Extension
@Extension
@Symbol
(
"mavenErrors"
)
public
static
final
class
DescriptorImpl
extends
ConsoleAnnotationDescriptor
{
public
String
getDisplayName
()
{
return
"Maven Errors"
;
...
...
core/src/main/java/hudson/tasks/_maven/MavenMojoNote.java
浏览文件 @
e1c40288
...
...
@@ -28,6 +28,7 @@ import hudson.MarkupText;
import
hudson.console.ConsoleAnnotationDescriptor
;
import
hudson.console.ConsoleAnnotator
;
import
hudson.console.ConsoleNote
;
import
org.jenkinsci.Symbol
;
import
java.util.regex.Pattern
;
...
...
@@ -49,7 +50,7 @@ public class MavenMojoNote extends ConsoleNote {
return
null
;
}
@Extension
@Extension
@Symbol
(
"mavenMojos"
)
public
static
final
class
DescriptorImpl
extends
ConsoleAnnotationDescriptor
{
public
String
getDisplayName
()
{
return
"Maven Mojos"
;
...
...
core/src/main/java/hudson/tasks/_maven/MavenWarningNote.java
浏览文件 @
e1c40288
...
...
@@ -28,6 +28,7 @@ import hudson.MarkupText;
import
hudson.console.ConsoleAnnotationDescriptor
;
import
hudson.console.ConsoleAnnotator
;
import
hudson.console.ConsoleNote
;
import
org.jenkinsci.Symbol
;
import
java.util.regex.Pattern
;
...
...
@@ -46,7 +47,7 @@ public class MavenWarningNote extends ConsoleNote {
return
null
;
}
@Extension
@Extension
@Symbol
(
"mavenWarnings"
)
public
static
final
class
DescriptorImpl
extends
ConsoleAnnotationDescriptor
{
public
String
getDisplayName
()
{
return
"Maven Warnings"
;
...
...
core/src/main/java/hudson/tools/InstallSourceProperty.java
浏览文件 @
e1c40288
...
...
@@ -27,6 +27,7 @@ import hudson.Extension;
import
hudson.util.DescribableList
;
import
hudson.model.Descriptor
;
import
hudson.model.Saveable
;
import
org.jenkinsci.Symbol
;
import
org.kohsuke.stapler.DataBoundConstructor
;
import
java.util.List
;
...
...
@@ -61,7 +62,7 @@ public class InstallSourceProperty extends ToolProperty<ToolInstallation> {
return
ToolInstallation
.
class
;
}
@Extension
@Extension
@Symbol
(
"installSource"
)
public
static
class
DescriptorImpl
extends
ToolPropertyDescriptor
{
public
String
getDisplayName
()
{
return
Messages
.
InstallSourceProperty_DescriptorImpl_displayName
();
...
...
core/src/main/java/hudson/tools/JDKInstaller.java
浏览文件 @
e1c40288
...
...
@@ -52,6 +52,7 @@ import org.apache.commons.httpclient.methods.GetMethod;
import
org.apache.commons.httpclient.methods.PostMethod
;
import
org.apache.commons.httpclient.protocol.Protocol
;
import
org.apache.commons.io.IOUtils
;
import
org.jenkinsci.Symbol
;
import
org.kohsuke.stapler.DataBoundConstructor
;
import
org.kohsuke.stapler.HttpResponse
;
import
org.kohsuke.stapler.QueryParameter
;
...
...
@@ -741,7 +742,7 @@ public class JDKInstaller extends ToolInstaller {
return
(
DescriptorImpl
)
super
.
getDescriptor
();
}
@Extension
@Extension
@Symbol
(
"jdkInstaller"
)
public
static
final
class
DescriptorImpl
extends
ToolInstallerDescriptor
<
JDKInstaller
>
{
private
String
username
;
private
Secret
password
;
...
...
@@ -805,7 +806,7 @@ public class JDKInstaller extends ToolInstaller {
/**
* JDK list.
*/
@Extension
@Extension
@Symbol
(
"jdk"
)
public
static
final
class
JDKList
extends
Downloadable
{
public
JDKList
()
{
super
(
JDKInstaller
.
class
);
...
...
core/src/main/java/hudson/views/GlobalDefaultViewConfiguration.java
浏览文件 @
e1c40288
...
...
@@ -27,6 +27,7 @@ import hudson.Extension;
import
jenkins.model.GlobalConfiguration
;
import
jenkins.model.Jenkins
;
import
net.sf.json.JSONObject
;
import
org.jenkinsci.Symbol
;
import
org.kohsuke.stapler.StaplerRequest
;
/**
...
...
@@ -34,7 +35,7 @@ import org.kohsuke.stapler.StaplerRequest;
*
* @author Kohsuke Kawaguchi
*/
@Extension
(
ordinal
=
300
)
@Extension
(
ordinal
=
300
)
@Symbol
(
"defaultView"
)
public
class
GlobalDefaultViewConfiguration
extends
GlobalConfiguration
{
@Override
public
boolean
configure
(
StaplerRequest
req
,
JSONObject
json
)
throws
FormException
{
...
...
core/src/main/java/hudson/views/LastDurationColumn.java
浏览文件 @
e1c40288
...
...
@@ -24,6 +24,7 @@
package
hudson.views
;
import
hudson.Extension
;
import
org.jenkinsci.Symbol
;
import
org.kohsuke.stapler.DataBoundConstructor
;
public
class
LastDurationColumn
extends
ListViewColumn
{
...
...
@@ -31,7 +32,7 @@ public class LastDurationColumn extends ListViewColumn {
public
LastDurationColumn
()
{
}
@Extension
(
ordinal
=
DEFAULT_COLUMNS_ORDINAL_PROPERTIES_START
-
4
)
@Extension
(
ordinal
=
DEFAULT_COLUMNS_ORDINAL_PROPERTIES_START
-
4
)
@Symbol
(
"lastDuration"
)
public
static
class
DescriptorImpl
extends
ListViewColumnDescriptor
{
@Override
public
String
getDisplayName
()
{
...
...
core/src/main/java/hudson/views/LastFailureColumn.java
浏览文件 @
e1c40288
...
...
@@ -24,6 +24,7 @@
package
hudson.views
;
import
hudson.Extension
;
import
org.jenkinsci.Symbol
;
import
org.kohsuke.stapler.DataBoundConstructor
;
public
class
LastFailureColumn
extends
ListViewColumn
{
...
...
@@ -31,7 +32,7 @@ public class LastFailureColumn extends ListViewColumn {
public
LastFailureColumn
()
{
}
@Extension
(
ordinal
=
DEFAULT_COLUMNS_ORDINAL_PROPERTIES_START
-
2
)
@Extension
(
ordinal
=
DEFAULT_COLUMNS_ORDINAL_PROPERTIES_START
-
2
)
@Symbol
(
"lastFailure"
)
public
static
class
DescriptorImpl
extends
ListViewColumnDescriptor
{
@Override
public
String
getDisplayName
()
{
...
...
core/src/main/java/hudson/views/LastStableColumn.java
浏览文件 @
e1c40288
...
...
@@ -24,6 +24,7 @@
package
hudson.views
;
import
hudson.Extension
;
import
org.jenkinsci.Symbol
;
import
org.kohsuke.stapler.DataBoundConstructor
;
public
class
LastStableColumn
extends
ListViewColumn
{
...
...
@@ -31,7 +32,7 @@ public class LastStableColumn extends ListViewColumn {
public
LastStableColumn
()
{
}
@Extension
(
ordinal
=
DEFAULT_COLUMNS_ORDINAL_PROPERTIES_START
-
3
)
@Extension
(
ordinal
=
DEFAULT_COLUMNS_ORDINAL_PROPERTIES_START
-
3
)
@Symbol
(
"lastStable"
)
public
static
class
DescriptorImpl
extends
ListViewColumnDescriptor
{
@Override
public
String
getDisplayName
()
{
...
...
core/src/main/java/hudson/views/LastSuccessColumn.java
浏览文件 @
e1c40288
...
...
@@ -24,6 +24,7 @@
package
hudson.views
;
import
hudson.Extension
;
import
org.jenkinsci.Symbol
;
import
org.kohsuke.stapler.DataBoundConstructor
;
public
class
LastSuccessColumn
extends
ListViewColumn
{
...
...
@@ -31,7 +32,7 @@ public class LastSuccessColumn extends ListViewColumn {
public
LastSuccessColumn
()
{
}
@Extension
(
ordinal
=
DEFAULT_COLUMNS_ORDINAL_PROPERTIES_START
-
1
)
@Extension
(
ordinal
=
DEFAULT_COLUMNS_ORDINAL_PROPERTIES_START
-
1
)
@Symbol
(
"lastSuccess"
)
public
static
class
DescriptorImpl
extends
ListViewColumnDescriptor
{
@Override
public
String
getDisplayName
()
{
...
...
core/src/main/java/hudson/views/MyViewsTabBar.java
浏览文件 @
e1c40288
...
...
@@ -32,6 +32,7 @@ import jenkins.model.GlobalConfiguration;
import
jenkins.model.Jenkins
;
import
hudson.model.MyViewsProperty
;
import
net.sf.json.JSONObject
;
import
org.jenkinsci.Symbol
;
import
org.kohsuke.stapler.StaplerRequest
;
/**
...
...
@@ -67,7 +68,7 @@ public abstract class MyViewsTabBar extends AbstractDescribableImpl<MyViewsTabBa
*
* @author Kohsuke Kawaguchi
*/
@Extension
(
ordinal
=
305
)
@Extension
(
ordinal
=
305
)
@Symbol
(
"myView"
)
public
static
class
GlobalConfigurationImpl
extends
GlobalConfiguration
{
public
MyViewsTabBar
getMyViewsTabBar
()
{
return
Jenkins
.
getInstance
().
getMyViewsTabBar
();
...
...
core/src/main/java/jenkins/diagnosis/HsErrPidList.java
浏览文件 @
e1c40288
...
...
@@ -24,13 +24,15 @@ import java.util.List;
import
java.util.logging.Level
;
import
java.util.logging.Logger
;
import
org.apache.commons.io.IOUtils
;
import
org.jenkinsci.Symbol
;
/**
* Finds crash dump reports and show them in the UI.
*
* @author Kohsuke Kawaguchi
*/
@Extension
(
optional
=
true
)
// TODO why would an extension using a built-in extension point need to be marked optional?
@Extension
(
optional
=
true
)
@Symbol
(
"hsErrPid"
)
// TODO why would an extension using a built-in extension point need to be marked optional?
public
class
HsErrPidList
extends
AdministrativeMonitor
{
/**
* hs_err_pid files that we think belong to us.
...
...
core/src/main/java/jenkins/management/NodesLink.java
浏览文件 @
e1c40288
...
...
@@ -27,11 +27,12 @@ package jenkins.management;
import
hudson.Extension
;
import
hudson.model.ManagementLink
;
import
jenkins.management.Messages
;
import
org.jenkinsci.Symbol
;
/**
* @author <a href="mailto:nicolas.deloof@gmail.com">Nicolas De Loof</a>
*/
@Extension
(
ordinal
=
Integer
.
MAX_VALUE
-
1000
)
@Extension
(
ordinal
=
Integer
.
MAX_VALUE
-
1000
)
@Symbol
(
"nodes"
)
public
class
NodesLink
extends
ManagementLink
{
@Override
...
...
core/src/main/java/jenkins/management/PluginsLink.java
浏览文件 @
e1c40288
...
...
@@ -26,11 +26,12 @@ package jenkins.management;
import
hudson.Extension
;
import
hudson.model.ManagementLink
;
import
org.jenkinsci.Symbol
;
/**
* @author <a href="mailto:nicolas.deloof@gmail.com">Nicolas De Loof</a>
*/
@Extension
(
ordinal
=
Integer
.
MAX_VALUE
-
400
)
@Extension
(
ordinal
=
Integer
.
MAX_VALUE
-
400
)
@Symbol
(
"plugins"
)
public
class
PluginsLink
extends
ManagementLink
{
@Override
...
...
core/src/main/java/jenkins/management/ReloadLink.java
浏览文件 @
e1c40288
...
...
@@ -26,11 +26,12 @@ package jenkins.management;
import
hudson.Extension
;
import
hudson.model.ManagementLink
;
import
org.jenkinsci.Symbol
;
/**
* @author <a href="mailto:nicolas.deloof@gmail.com">Nicolas De Loof</a>
*/
@Extension
(
ordinal
=
Integer
.
MAX_VALUE
-
300
)
@Extension
(
ordinal
=
Integer
.
MAX_VALUE
-
300
)
@Symbol
(
"reload"
)
public
class
ReloadLink
extends
ManagementLink
{
@Override
...
...
core/src/main/java/jenkins/model/GlobalCloudConfiguration.java
浏览文件 @
e1c40288
...
...
@@ -3,6 +3,7 @@ package jenkins.model;
import
hudson.Extension
;
import
hudson.slaves.Cloud
;
import
net.sf.json.JSONObject
;
import
org.jenkinsci.Symbol
;
import
org.kohsuke.stapler.StaplerRequest
;
import
java.io.IOException
;
...
...
@@ -15,7 +16,7 @@ import java.io.IOException;
*
* @author Kohsuke Kawaguchi
*/
@Extension
(
ordinal
=-
100
)
// historically this was placed at the very end of the configuration page
@Extension
(
ordinal
=-
100
)
@Symbol
(
"cloud"
)
// historically this was placed at the very end of the configuration page
public
class
GlobalCloudConfiguration
extends
GlobalConfiguration
{
@Override
public
boolean
configure
(
StaplerRequest
req
,
JSONObject
json
)
throws
FormException
{
...
...
core/src/main/java/jenkins/model/GlobalConfigurationCategory.java
浏览文件 @
e1c40288
...
...
@@ -6,6 +6,7 @@ import hudson.ExtensionPoint;
import
hudson.model.ModelObject
;
import
hudson.security.*
;
import
hudson.security.Messages
;
import
org.jenkinsci.Symbol
;
/**
* Grouping of related {@link GlobalConfiguration}s.
...
...
@@ -54,7 +55,7 @@ public abstract class GlobalConfigurationCategory implements ExtensionPoint, Mod
*
* In the current UI, this corresponds to the /configure link.
*/
@Extension
@Extension
@Symbol
(
"unclassified"
)
public
static
class
Unclassified
extends
GlobalConfigurationCategory
{
@Override
public
String
getShortDescription
()
{
...
...
@@ -69,7 +70,7 @@ public abstract class GlobalConfigurationCategory implements ExtensionPoint, Mod
/**
* Security related configurations.
*/
@Extension
@Extension
@Symbol
(
"security"
)
public
static
class
Security
extends
GlobalConfigurationCategory
{
@Override
public
String
getShortDescription
()
{
...
...
core/src/main/java/jenkins/model/GlobalNodePropertiesConfiguration.java
浏览文件 @
e1c40288
...
...
@@ -4,6 +4,7 @@ import hudson.Extension;
import
hudson.slaves.NodeProperty
;
import
hudson.slaves.NodePropertyDescriptor
;
import
net.sf.json.JSONObject
;
import
org.jenkinsci.Symbol
;
import
org.kohsuke.stapler.StaplerRequest
;
import
java.io.IOException
;
...
...
@@ -13,7 +14,7 @@ import java.io.IOException;
*
* @author Kohsuke Kawaguchi
*/
@Extension
(
ordinal
=
110
)
// historically this was placed above GlobalPluginConfiguration
@Extension
(
ordinal
=
110
)
@Symbol
(
"nodeProperties"
)
// historically this was placed above GlobalPluginConfiguration
public
class
GlobalNodePropertiesConfiguration
extends
GlobalConfiguration
{
@Override
public
boolean
configure
(
StaplerRequest
req
,
JSONObject
json
)
throws
FormException
{
...
...
core/src/main/java/jenkins/model/GlobalPluginConfiguration.java
浏览文件 @
e1c40288
...
...
@@ -4,6 +4,7 @@ import hudson.Extension;
import
hudson.Plugin
;
import
hudson.StructuredForm
;
import
net.sf.json.JSONObject
;
import
org.jenkinsci.Symbol
;
import
org.kohsuke.stapler.StaplerRequest
;
import
javax.servlet.ServletException
;
...
...
@@ -17,7 +18,7 @@ import java.io.IOException;
*
* @author Kohsuke Kawaguchi
*/
@Extension
(
ordinal
=
100
)
// historically this was placed above general configuration from arbitrary descriptors
@Extension
(
ordinal
=
100
)
@Symbol
(
"plugin"
)
// historically this was placed above general configuration from arbitrary descriptors
public
class
GlobalPluginConfiguration
extends
GlobalConfiguration
{
@Override
public
boolean
configure
(
StaplerRequest
req
,
JSONObject
json
)
throws
FormException
{
...
...
core/src/main/java/jenkins/model/GlobalProjectNamingStrategyConfiguration.java
浏览文件 @
e1c40288
...
...
@@ -27,6 +27,7 @@ import hudson.Extension;
import
jenkins.model.ProjectNamingStrategy.DefaultProjectNamingStrategy
;
import
net.sf.json.JSONObject
;
import
org.jenkinsci.Symbol
;
import
org.kohsuke.stapler.StaplerRequest
;
/**
...
...
@@ -34,7 +35,7 @@ import org.kohsuke.stapler.StaplerRequest;
*
* @author Dominik Bartholdi (imod)
*/
@Extension
(
ordinal
=
250
)
@Extension
(
ordinal
=
250
)
@Symbol
(
"projectNamingStrategy"
)
public
class
GlobalProjectNamingStrategyConfiguration
extends
GlobalConfiguration
{
@Override
...
...
core/src/main/java/jenkins/model/GlobalQuietPeriodConfiguration.java
浏览文件 @
e1c40288
...
...
@@ -25,6 +25,7 @@ package jenkins.model;
import
hudson.Extension
;
import
net.sf.json.JSONObject
;
import
org.jenkinsci.Symbol
;
import
org.kohsuke.stapler.StaplerRequest
;
import
java.io.IOException
;
...
...
@@ -34,7 +35,7 @@ import java.io.IOException;
*
* @author Kohsuke Kawaguchi
*/
@Extension
(
ordinal
=
400
)
@Extension
(
ordinal
=
400
)
@Symbol
(
"quietPeriod"
)
public
class
GlobalQuietPeriodConfiguration
extends
GlobalConfiguration
{
public
int
getQuietPeriod
()
{
return
Jenkins
.
getInstance
().
getQuietPeriod
();
...
...
core/src/main/java/jenkins/model/GlobalSCMRetryCountConfiguration.java
浏览文件 @
e1c40288
...
...
@@ -25,6 +25,7 @@ package jenkins.model;
import
hudson.Extension
;
import
net.sf.json.JSONObject
;
import
org.jenkinsci.Symbol
;
import
org.kohsuke.stapler.StaplerRequest
;
import
java.io.IOException
;
...
...
@@ -34,7 +35,7 @@ import java.io.IOException;
*
* @author Kohsuke Kawaguchi
*/
@Extension
(
ordinal
=
395
)
@Extension
(
ordinal
=
395
)
@Symbol
(
"scmRetryCount"
)
public
class
GlobalSCMRetryCountConfiguration
extends
GlobalConfiguration
{
public
int
getScmCheckoutRetryCount
()
{
return
Jenkins
.
getInstance
().
getScmCheckoutRetryCount
();
...
...
core/src/main/java/jenkins/model/IdStrategy.java
浏览文件 @
e1c40288
...
...
@@ -29,6 +29,7 @@ import hudson.ExtensionPoint;
import
hudson.model.AbstractDescribableImpl
;
import
hudson.util.CaseInsensitiveComparator
;
import
org.apache.commons.lang.StringUtils
;
import
org.jenkinsci.Symbol
;
import
org.kohsuke.stapler.DataBoundConstructor
;
import
javax.annotation.Nonnull
;
...
...
@@ -175,7 +176,7 @@ public abstract class IdStrategy extends AbstractDescribableImpl<IdStrategy> imp
return
CaseInsensitiveComparator
.
INSTANCE
.
compare
(
id1
,
id2
);
}
@Extension
@Extension
@Symbol
(
"caseInsensitive"
)
public
static
class
DescriptorImpl
extends
IdStrategyDescriptor
{
/**
...
...
@@ -303,7 +304,7 @@ public abstract class IdStrategy extends AbstractDescribableImpl<IdStrategy> imp
return
id1
.
compareTo
(
id2
);
}
@Extension
@Extension
@Symbol
(
"caseSensitive"
)
public
static
class
DescriptorImpl
extends
IdStrategyDescriptor
{
/**
...
...
core/src/main/java/jenkins/model/MasterBuildConfiguration.java
浏览文件 @
e1c40288
...
...
@@ -26,6 +26,7 @@ package jenkins.model;
import
hudson.Extension
;
import
hudson.model.Node.Mode
;
import
net.sf.json.JSONObject
;
import
org.jenkinsci.Symbol
;
import
org.kohsuke.stapler.StaplerRequest
;
import
java.io.IOException
;
...
...
@@ -35,7 +36,7 @@ import java.io.IOException;
*
* @author Kohsuke Kawaguchi
*/
@Extension
(
ordinal
=
500
)
@Extension
(
ordinal
=
500
)
@Symbol
(
"masterBuild"
)
public
class
MasterBuildConfiguration
extends
GlobalConfiguration
{
public
int
getNumExecutors
()
{
return
Jenkins
.
getInstance
().
getNumExecutors
();
...
...
core/src/main/java/jenkins/model/ProjectNamingStrategy.java
浏览文件 @
e1c40288
...
...
@@ -40,6 +40,7 @@ import java.util.regex.PatternSyntaxException;
import
javax.servlet.ServletException
;
import
org.apache.commons.lang.StringUtils
;
import
org.jenkinsci.Symbol
;
import
org.kohsuke.stapler.DataBoundConstructor
;
import
org.kohsuke.stapler.QueryParameter
;
...
...
@@ -108,7 +109,7 @@ public abstract class ProjectNamingStrategy implements Describable<ProjectNaming
return
DEFAULT_NAMING_STRATEGY
;
}
@Extension
@Extension
@Symbol
(
"default"
)
public
static
final
class
DescriptorImpl
extends
ProjectNamingStrategyDescriptor
{
@Override
public
String
getDisplayName
()
{
...
...
@@ -174,7 +175,7 @@ public abstract class ProjectNamingStrategy implements Describable<ProjectNaming
return
forceExistingJobs
;
}
@Extension
@Extension
@Symbol
(
"pattern"
)
public
static
final
class
DescriptorImpl
extends
ProjectNamingStrategyDescriptor
{
public
static
final
String
DEFAULT_PATTERN
=
".*"
;
...
...
core/src/main/java/jenkins/mvn/GlobalMavenConfig.java
浏览文件 @
e1c40288
...
...
@@ -4,10 +4,11 @@ import hudson.Extension;
import
jenkins.model.GlobalConfiguration
;
import
net.sf.json.JSONObject
;
import
org.jenkinsci.Symbol
;
import
org.kohsuke.stapler.StaplerRequest
;
//as close as it gets to the global Maven Project configuration
@Extension
(
ordinal
=
50
)
@Extension
(
ordinal
=
50
)
@Symbol
(
"maven"
)
public
class
GlobalMavenConfig
extends
GlobalConfiguration
{
private
SettingsProvider
settingsProvider
;
private
GlobalSettingsProvider
globalSettingsProvider
;
...
...
core/src/main/java/jenkins/security/LastGrantedAuthoritiesProperty.java
浏览文件 @
e1c40288
...
...
@@ -12,6 +12,7 @@ import org.acegisecurity.Authentication;
import
org.acegisecurity.GrantedAuthority
;
import
org.acegisecurity.GrantedAuthorityImpl
;
import
org.acegisecurity.userdetails.UserDetails
;
import
org.jenkinsci.Symbol
;
import
org.kohsuke.stapler.StaplerRequest
;
import
javax.annotation.Nonnull
;
...
...
@@ -146,7 +147,7 @@ public class LastGrantedAuthoritiesProperty extends UserProperty {
}
}
@Extension
@Extension
@Symbol
(
"lastGrantedAuthorities"
)
public
static
final
class
DescriptorImpl
extends
UserPropertyDescriptor
{
@Override
public
boolean
isEnabled
()
{
...
...
core/src/main/java/jenkins/security/QueueItemAuthenticatorConfiguration.java
浏览文件 @
e1c40288
...
...
@@ -7,6 +7,7 @@ import jenkins.model.GlobalConfiguration;
import
jenkins.model.GlobalConfigurationCategory
;
import
jenkins.model.Jenkins
;
import
net.sf.json.JSONObject
;
import
org.jenkinsci.Symbol
;
import
org.kohsuke.stapler.StaplerRequest
;
import
java.io.IOException
;
...
...
@@ -18,7 +19,7 @@ import java.util.List;
* @author Kohsuke Kawaguchi
* @since 1.520
*/
@Extension
@Extension
@Symbol
(
"queueItemAuthenticator"
)
public
class
QueueItemAuthenticatorConfiguration
extends
GlobalConfiguration
{
private
final
DescribableList
<
QueueItemAuthenticator
,
QueueItemAuthenticatorDescriptor
>
authenticators
=
new
DescribableList
<
QueueItemAuthenticator
,
QueueItemAuthenticatorDescriptor
>(
this
);
...
...
core/src/main/java/jenkins/security/RekeySecretAdminMonitor.java
浏览文件 @
e1c40288
...
...
@@ -10,6 +10,7 @@ import hudson.util.VersionNumber;
import
jenkins.management.AsynchronousAdministrativeMonitor
;
import
jenkins.model.Jenkins
;
import
jenkins.util.io.FileBoolean
;
import
org.jenkinsci.Symbol
;
import
org.kohsuke.stapler.HttpResponse
;
import
org.kohsuke.stapler.StaplerProxy
;
import
org.kohsuke.stapler.StaplerRequest
;
...
...
@@ -28,7 +29,7 @@ import java.util.logging.Logger;
*
* @author Kohsuke Kawaguchi
*/
@Extension
@Extension
@Symbol
(
"rekeySecret"
)
public
class
RekeySecretAdminMonitor
extends
AsynchronousAdministrativeMonitor
implements
StaplerProxy
{
/**
...
...
core/src/main/java/jenkins/slaves/JnlpSlaveAgentProtocol.java
浏览文件 @
e1c40288
...
...
@@ -11,6 +11,7 @@ import jenkins.AgentProtocol;
import
jenkins.model.Jenkins
;
import
jenkins.security.ChannelConfigurator
;
import
jenkins.security.HMACConfidentialKey
;
import
org.jenkinsci.Symbol
;
import
org.jenkinsci.remoting.nio.NioChannelHub
;
import
javax.inject.Inject
;
...
...
@@ -52,7 +53,7 @@ import java.util.logging.Logger;
* @author Kohsuke Kawaguchi
* @since 1.467
*/
@Extension
@Extension
@Symbol
(
"jnlp"
)
public
class
JnlpSlaveAgentProtocol
extends
AgentProtocol
{
@Inject
NioChannelSelector
hub
;
...
...
core/src/main/java/jenkins/slaves/JnlpSlaveAgentProtocol2.java
浏览文件 @
e1c40288
package
jenkins.slaves
;
import
hudson.Extension
;
import
org.jenkinsci.Symbol
;
import
org.jenkinsci.remoting.nio.NioChannelHub
;
import
java.io.ByteArrayInputStream
;
...
...
@@ -18,7 +19,7 @@ import java.net.Socket;
* @author Kohsuke Kawaguchi
* @since 1.467
*/
@Extension
@Extension
@Symbol
(
"jnlp2"
)
public
class
JnlpSlaveAgentProtocol2
extends
JnlpSlaveAgentProtocol
{
@Override
public
String
getName
()
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录