private Object readResolve() { authenticators.setOwner(this); return this; }
private Object readResolve() { artifactManagerFactories.setOwner(this); return this; }
public DescribableList(Saveable owner, Collection<? extends T> initialList) { super(initialList); setOwner(owner); }
public DescribableList(Saveable owner) { setOwner(owner); }
/** * @deprecated since 2008-08-15. * Use {@link #DescribableList(Saveable)} */ @Deprecated public DescribableList(Owner owner) { setOwner(owner); }
/** * 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; } }
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(); }
@Override public void onLoad(ItemGroup<? extends Item> parent, String name) throws IOException { super.onLoad(parent, name); if (buildMixIn == null) { buildMixIn = createBuildMixIn(); } buildMixIn.onLoad(parent, name); builds = buildMixIn.getRunMap(); triggers().setOwner(this); for (Trigger t : triggers()) { try { t.start(this, Items.currentlyUpdatingByXml()); } catch (Throwable e) { LOGGER.log(Level.WARNING, "could not start trigger while loading project '" + getFullName() + "'", e); } } if(scm==null) scm = new NullSCM(); // perhaps it was pointing to a plugin that no longer exists. if(transientActions==null) transientActions = new Vector<Action>(); // happens when loaded from disk updateTransientActions(); }
/** * @deprecated since 2008-08-15. * Use {@link #DescribableList(Saveable)} */ public DescribableList(Owner owner) { setOwner(owner); }
/** * @deprecated since 2008-08-15. * Use {@link #DescribableList(Saveable)} */ @Deprecated public DescribableList(Owner owner) { setOwner(owner); }
@Override public void onLoad(ItemGroup<? extends Item> parent, String name) throws IOException { super.onLoad(parent,name); builders.setOwner(this); publishers.setOwner(this); buildWrappers.setOwner(this); if (executionStrategy ==null) executionStrategy = new DefaultMatrixExecutionStrategyImpl(runSequentially != null ? runSequentially : false, touchStoneCombinationFilter, touchStoneResultCondition, sorter); rebuildConfigurations(null); }
@Override public void onLoad(ItemGroup<? extends Item> parent, String name) throws IOException { super.onLoad(parent, name); if (publishers == null) publishers = new DescribableList<Publisher, Descriptor<Publisher>>(this); publishers.setOwner(this); if (dependencies == null) { dependencies = Collections.emptySet(); } }
@Override public void onLoad(ItemGroup<? extends Item> parent, String name) throws IOException { super.onLoad(parent, name); if (publishers == null) publishers = new DescribableList<Publisher, Descriptor<Publisher>>(this); publishers.setOwner(this); if (dependencies == null) { dependencies = Collections.emptySet(); } }
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(); }
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(); }