Ejemplo n.º 1
0
 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();
 }
Ejemplo n.º 2
0
 /**
  * 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;
   }
 }
 private Object readResolve() {
   authenticators.setOwner(this);
   return this;
 }