Codota Logo
DescribableList.<init>
Code IndexAdd Codota to your IDE (free)

How to use
hudson.util.DescribableList
constructor

Best Java code snippets using hudson.util.DescribableList.<init> (Showing top 20 results out of 315)

  • Common ways to obtain DescribableList
private void myMethod () {
DescribableList d =
  • Codota IconBuildableItemWithBuildWrappers biwbw;biwbw.getBuildWrappersList()
  • Codota IconSaveable owner;new DescribableList<ToolProperty<?>, ToolPropertyDescriptor>(owner)
  • Codota IconListView listView;new DescribableList<ViewJobFilter, Descriptor<ViewJobFilter>>(listView)
  • Smart code suggestions by Codota
}
origin: jenkinsci/jenkins

/**
 * Invoked by XStream when this object is read into memory.
 */
protected Object readResolve() {
  if(nodeProperties==null)
    nodeProperties = new DescribableList<>(this);
  return this;
}
origin: jenkinsci/jenkins

protected void initJobFilters() {
  if (jobFilters == null)
    jobFilters = new DescribableList<ViewJobFilter, Descriptor<ViewJobFilter>>(this);
}
origin: jenkinsci/jenkins

public DescribableList<Publisher,Descriptor<Publisher>> getPublishersList() {
  if (publishers == null) {
    publishersSetter.compareAndSet(this,null,new DescribableList<Publisher,Descriptor<Publisher>>(this));
  }
  return publishers;
}
origin: jenkinsci/jenkins

public DescribableList<BuildWrapper, Descriptor<BuildWrapper>> getBuildWrappersList() {
  if (buildWrappers == null) {
    buildWrappersSetter.compareAndSet(this,null,new DescribableList<BuildWrapper,Descriptor<BuildWrapper>>(this));
  }
  return buildWrappers;
}
origin: jenkinsci/jenkins

public DescribableList<Builder,Descriptor<Builder>> getBuildersList() {
  if (builders == null) {
    buildersSetter.compareAndSet(this,null,new DescribableList<Builder,Descriptor<Builder>>(this));
  }
  return builders;
}

origin: jenkinsci/jenkins

/**
 * Invoked by XStream when this object is read into memory.
 */
protected Object readResolve() {
  if(properties==null)
    properties = new DescribableList<ToolProperty<?>,ToolPropertyDescriptor>(Saveable.NOOP);
  for (ToolProperty<?> p : properties)
    _setTool(p, this);
  return this;
}
origin: jenkinsci/jenkins

protected void initColumns() {
  if (columns == null)
    columns = new DescribableList<ListViewColumn, Descriptor<ListViewColumn>>(this,
        ListViewColumn.createDefaultInitialColumnList(getClass())
    );
}
origin: jenkinsci/jenkins

@WithBridgeMethods(List.class)
protected DescribableList<Trigger<?>,TriggerDescriptor> triggers() {
  if (triggers == null) {
    triggersUpdater.compareAndSet(this,null,new DescribableList<Trigger<?>,TriggerDescriptor>(this));
  }
  return triggers;
}
origin: jenkinsci/jenkins

/**
 * Default value for {@link ToolInstallation#getProperties()} used in the form binding.
 * @since 1.305
 */
public DescribableList<ToolProperty<?>,ToolPropertyDescriptor> getDefaultProperties() throws IOException {
  DescribableList<ToolProperty<?>,ToolPropertyDescriptor> r
      = new DescribableList<ToolProperty<?>, ToolPropertyDescriptor>(NOOP);
  List<? extends ToolInstaller> installers = getDefaultInstallers();
  if(!installers.isEmpty())
    r.add(new InstallSourceProperty(installers));
  return r;
}
origin: jenkinsci/jenkins

  @Override
  public Object onConvert(Type targetType, Class targetTypeErasure, Object jsonSource) {
    if (jsonForProperties != jsonSource) {
      return old.get().onConvert(targetType, targetTypeErasure, jsonSource);
    }
    try {
      DescribableList<NodeProperty<?>, NodePropertyDescriptor> tmp = new DescribableList<NodeProperty<?>, NodePropertyDescriptor>(Saveable.NOOP,getNodeProperties().toList());
      tmp.rebuild(req, jsonForProperties, NodeProperty.all());
      return tmp.toList();
    } catch (FormException e) {
      throw new IllegalArgumentException(e);
    } catch (IOException e) {
      throw new IllegalArgumentException(e);
    }
  }
}));
origin: jenkinsci/jenkins

columns = new DescribableList<ListViewColumn,Descriptor<ListViewColumn>>(this);
jobFilters = new DescribableList<ViewJobFilter,Descriptor<ViewJobFilter>>(this);
origin: jenkinsci/jenkins

DescribableList<JobProperty<?>, JobPropertyDescriptor> t = new DescribableList<JobProperty<?>, JobPropertyDescriptor>(NOOP,getAllProperties());
JSONObject jsonProperties = json.optJSONObject("properties");
if (jsonProperties != null) {
origin: jenkinsci/ghprb-plugin

public DescribableList<GhprbExtension, GhprbExtensionDescriptor> getExtensions() {
  if (extensions == null) {
    extensions = new DescribableList<GhprbExtension, GhprbExtensionDescriptor>(Saveable.NOOP);
  }
  return extensions;
}
origin: org.jenkins-ci.main/jenkins-core

public DescribableList<Publisher,Descriptor<Publisher>> getPublishersList() {
  if (publishers == null) {
    publishersSetter.compareAndSet(this,null,new DescribableList<Publisher,Descriptor<Publisher>>(this));
  }
  return publishers;
}
origin: jenkinsci/ghprb-plugin

private static DescribableList<GhprbExtension, GhprbExtensionDescriptor> copyExtensions(
    DescribableList<GhprbExtension, GhprbExtensionDescriptor>... extensionsList
) {
  DescribableList<GhprbExtension, GhprbExtensionDescriptor> copiedList = new DescribableList<>(Saveable.NOOP);
  for (DescribableList<GhprbExtension, GhprbExtensionDescriptor> extensions : extensionsList) {
    copiedList.addAll(extensions);
  }
  return copiedList;
}
origin: org.jenkins-ci.main/jenkins-core

/**
 * Invoked by XStream when this object is read into memory.
 */
protected Object readResolve() {
  if(properties==null)
    properties = new DescribableList<ToolProperty<?>,ToolPropertyDescriptor>(Saveable.NOOP);
  for (ToolProperty<?> p : properties)
    _setTool(p, this);
  return this;
}
origin: groupon/DotCi

@Override
public Object decode(Class targetClass, Object fromDBObject, MappedField optionalExtraInfo) {
  if (fromDBObject == null) return null;
  BasicDBList rawList = (BasicDBList) fromDBObject;
  List list = new ArrayList();
  for (Object obj : rawList) {
    DBObject dbObj = (DBObject) obj;
    list.add(getMapper().fromDBObject(optionalExtraInfo.getSubClass(), dbObj, getMapper().createEntityCache()));
  }
  Saveable owner = null; // TODO figure out how to associate the deserialized project here
  return new DescribableList(owner, list);
}
origin: jenkinsci/ghprb-plugin

public DescribableList<GhprbExtension, GhprbExtensionDescriptor> getExtensions() {
  if (extensions == null) {
    extensions = new DescribableList<GhprbExtension, GhprbExtensionDescriptor>(Saveable.NOOP, Util.fixNull(extensions));
    extensions.add(new GhprbSimpleStatus());
  }
  return extensions;
}
origin: jenkinsci/ghprb-plugin

public static DescribableList<GhprbExtension, GhprbExtensionDescriptor> matchesSome(
    DescribableList<GhprbExtension, GhprbExtensionDescriptor> extensions,
    Class<?>... types
) {
  Predicate predicate = PredicateUtils.anyPredicate(createPredicate(types));
  DescribableList<GhprbExtension, GhprbExtensionDescriptor> copyExtensions = new DescribableList<>(Saveable.NOOP);
  copyExtensions.addAll(extensions);
  filterList(copyExtensions, predicate);
  return copyExtensions;
}
origin: jenkinsci/ghprb-plugin

public static <T extends GhprbExtension> T getGlobal(Class<T> clazz) {
  DescribableList<GhprbExtension, GhprbExtensionDescriptor> copyExtensions = new DescribableList<>(Saveable.NOOP);
  copyExtensions.addAll(GhprbTrigger.DESCRIPTOR.getExtensions());
  filterList(copyExtensions, InstanceofPredicate.getInstance(clazz));
  return copyExtensions.get(clazz);
}
hudson.utilDescribableList<init>

Popular methods of DescribableList

  • get
  • toList
  • add
  • rebuild
  • remove
  • setOwner
  • getAll
  • toMap
    Creates a detached map from the current snapshot of the data, keyed from a descriptor to an instance
  • buildDependencyGraph
    Picks up DependecyDeclarers and allow it to build dependencies.
  • rebuildHetero
    Rebuilds the list by creating a fresh instances from the submitted form. This version works with the
  • addAll
  • isEmpty
  • addAll,
  • isEmpty,
  • replace,
  • replaceBy,
  • addAllTo,
  • removeAll,
  • size,
  • onModified,
  • clear

Popular in Java

  • Making http requests using okhttp
  • onRequestPermissionsResult (Fragment)
  • getContentResolver (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • KeyStore (java.security)
    This class represents an in-memory collection of keys and certificates. It manages two types of entr
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • Dictionary (java.util)
    The Dictionary class is the abstract parent of any class, such as Hashtable, which maps keys to valu
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • JPanel (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now