コード例 #1
0
ファイル: LabelAtom.java プロジェクト: Chi721/jenkins
 public void load() {
   XmlFile file = getConfigFile();
   if (file.exists()) {
     try {
       file.unmarshal(this);
     } catch (IOException e) {
       LOGGER.log(Level.WARNING, "Failed to load " + file, e);
     }
   }
   properties.setOwner(this);
   updateTransientActions();
 }
コード例 #2
0
ファイル: View.java プロジェクト: alexkogon/jenkins
 /**
  * Gets the view properties configured for this view.
  *
  * @since 1.406
  */
 public DescribableList<ViewProperty, ViewPropertyDescriptor> getProperties() {
   // readResolve was the best place to do this, but for compatibility reasons,
   // this class can no longer have readResolve() (the mechanism itself isn't suitable for class
   // hierarchy)
   // see JENKINS-9431
   //
   // until we have that, putting this logic here.
   synchronized (PropertyList.class) {
     if (properties == null) {
       properties = new PropertyList(this);
     } else {
       properties.setOwner(this);
     }
     return properties;
   }
 }
コード例 #3
0
 private Object readResolve() {
   authenticators.setOwner(this);
   return this;
 }