Tabnine Logo
StringConfigMap.asMapWithStringKeys
Code IndexAdd Tabnine to your IDE (free)

How to use
asMapWithStringKeys
method
in
brooklyn.config.StringConfigMap

Best Java code snippets using brooklyn.config.StringConfigMap.asMapWithStringKeys (Showing top 3 results out of 315)

origin: io.brooklyn/brooklyn-core

@Override
public Map getProperties() {
  return mgmt.getConfig().asMapWithStringKeys();
}
origin: io.brooklyn/brooklyn-software-base

public String processTemplateContents(String templateContents, Map<String,? extends Object> extraSubstitutions) {
  Map<String, Object> config = getEntity().getApplication().getManagementContext().getConfig().asMapWithStringKeys();
  Map<String, Object> substitutions = ImmutableMap.<String, Object>builder()
      .putAll(config)
      .put("entity", entity)
      .put("driver", this)
      .put("location", getLocation())
      .putAll(extraSubstitutions)
      .build();
  return TemplateProcessor.processTemplateContents(templateContents, substitutions);
  /*
  try {
    Configuration cfg = new Configuration();
    StringTemplateLoader templateLoader = new StringTemplateLoader();
    templateLoader.putTemplate("config", templateContents);
    cfg.setTemplateLoader(templateLoader);
    Template template = cfg.getTemplate("config");
    ByteArrayOutputStream baos = new ByteArrayOutputStream();
    Writer out = new OutputStreamWriter(baos);
    template.process(substitutions, out);
    out.flush();
    return new String(baos.toByteArray());
  } catch (Exception e) {
    log.warn("Error creating configuration file for "+entity, e);
    throw Exceptions.propagate(e);
  }
  */
}

origin: io.brooklyn/brooklyn-core

Map<String, String> subconfig = filterAndStripPrefix(config.asMapWithStringKeys(), DOWNLOAD_CONF_PREFIX);
brooklyn.configStringConfigMapasMapWithStringKeys

Popular methods of StringConfigMap

  • getConfig
  • getFirst
  • getRawConfig
  • getAllConfig
  • submap

Popular in Java

  • Start an intent from android
  • setScale (BigDecimal)
  • onCreateOptionsMenu (Activity)
  • scheduleAtFixedRate (Timer)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • JList (javax.swing)
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now