Codota Logo
SimpleConfigurationMetadataRepository.add
Code IndexAdd Codota to your IDE (free)

How to use
add
method
in
org.springframework.boot.configurationmetadata.SimpleConfigurationMetadataRepository

Best Java code snippets using org.springframework.boot.configurationmetadata.SimpleConfigurationMetadataRepository.add (Showing top 2 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Gson g =
  • Codota Iconnew Gson()
  • Codota IconGsonBuilder gsonBuilder;gsonBuilder.create()
  • Codota Iconnew GsonBuilder().create()
  • Smart code suggestions by Codota
}
origin: org.apereo.cas/cas-server-core-configuration-metadata-repository

private static SimpleConfigurationMetadataRepository create(final RawConfigurationMetadata metadata) {
  val repository = new SimpleConfigurationMetadataRepository();
  repository.add(metadata.getSources());
  for (val item : metadata.getItems()) {
    val source = getSource(metadata, item);
    repository.add(item, source);
  }
  val allProperties = repository.getAllProperties();
  for (val hint : metadata.getHints()) {
    var property = allProperties.get(hint.getId());
    if (property != null) {
      addValueHints(property, hint);
    } else {
      val id = hint.resolveId();
      property = allProperties.get(id);
      if (property != null) {
        if (hint.isMapKeyHints()) {
          addMapHints(property, hint);
        } else {
          addValueHints(property, hint);
        }
      }
    }
  }
  return repository;
}
origin: org.springframework.boot/spring-boot-configuration-metadata

private SimpleConfigurationMetadataRepository create(
    RawConfigurationMetadata metadata) {
  SimpleConfigurationMetadataRepository repository = new SimpleConfigurationMetadataRepository();
  repository.add(metadata.getSources());
  for (ConfigurationMetadataItem item : metadata.getItems()) {
    ConfigurationMetadataSource source = getSource(metadata, item);
    repository.add(item, source);
  }
  Map<String, ConfigurationMetadataProperty> allProperties = repository
      .getAllProperties();
  for (ConfigurationMetadataHint hint : metadata.getHints()) {
    ConfigurationMetadataProperty property = allProperties.get(hint.getId());
    if (property != null) {
      addValueHints(property, hint);
    }
    else {
      String id = hint.resolveId();
      property = allProperties.get(id);
      if (property != null) {
        if (hint.isMapKeyHints()) {
          addMapHints(property, hint);
        }
        else {
          addValueHints(property, hint);
        }
      }
    }
  }
  return repository;
}
org.springframework.boot.configurationmetadataSimpleConfigurationMetadataRepositoryadd

Javadoc

Register the specified ConfigurationMetadataSource.

Popular methods of SimpleConfigurationMetadataRepository

  • <init>
  • getAllProperties
  • include
    Merge the content of the specified repository to this repository.
  • getGroup
  • putIfAbsent

Popular in Java

  • Reading from database using SQL prepared statement
  • compareTo (BigDecimal)
  • addToBackStack (FragmentTransaction)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • Menu (java.awt)
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • Set (java.util)
    A collection that contains no duplicate elements. More formally, sets contain no pair of elements e1
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • JOptionPane (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