mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-16 21:42:27 +00:00
Bind {@link JobProperty}s to URL spaces.
This commit is contained in:
1 parent
81ccc97ca3
commit
793a67197b
1 file changed
+12
@@ -418,6 +418,18 @@ public abstract class Job<JobT extends Job<JobT, RunT>, RunT extends Run<JobT, R
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Bind {@link JobProperty}s to URL spaces.
|
||||
*
|
||||
* @since 1.403
|
||||
*/
|
||||
public JobProperty getProperty(String className) {
|
||||
for (JobProperty p : properties)
|
||||
if (p.getClass().getName().equals(className))
|
||||
return p;
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Overrides from job properties.
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user