Tabnine Logo
Configuration.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.jolokia.config.Configuration
constructor

Best Java code snippets using org.jolokia.config.Configuration.<init> (Showing top 4 results out of 315)

origin: rhuss/jolokia

/**
 * Initialize the configuration with the given map
 *
 * @param pConfig map holding the configuration in string representation. A reference to the map will be kept
 */
protected void init(Map<String, String> pConfig) {
  Map<String, String> finalCfg = getDefaultConfig(pConfig);
  finalCfg.putAll(pConfig);
  prepareDetectorOptions(finalCfg);
  addJolokiaId(finalCfg);
  jolokiaConfig = new Configuration();
  jolokiaConfig.updateGlobalConfiguration(finalCfg);
  initConfigAndValidate(finalCfg);
}
origin: rhuss/jolokia

Configuration initConfig(ServletConfig pConfig) {
  Configuration config = new Configuration(
      ConfigKey.AGENT_ID, NetworkUtil.getAgentId(hashCode(),"servlet"));
  // From ServletContext ....
  config.updateGlobalConfiguration(new ServletConfigFacade(pConfig));
  // ... and ServletConfig
  config.updateGlobalConfiguration(new ServletContextFacade(getServletContext()));
  // Set type last and overwrite anything written
  config.updateGlobalConfiguration(Collections.singletonMap(ConfigKey.AGENT_TYPE.getKeyValue(),"servlet"));
  return config;
}
origin: org.jolokia/jolokia-osgi

Configuration initConfig(ServletConfig pConfig) {
  Configuration config = new Configuration(
      ConfigKey.AGENT_ID, NetworkUtil.getAgentId(hashCode(),"servlet"));
  // From ServletContext ....
  config.updateGlobalConfiguration(new ServletConfigFacade(pConfig));
  // ... and ServletConfig
  config.updateGlobalConfiguration(new ServletContextFacade(getServletContext()));
  // Set type last and overwrite anything written
  config.updateGlobalConfiguration(Collections.singletonMap(ConfigKey.AGENT_TYPE.getKeyValue(),"servlet"));
  return config;
}
origin: org.jolokia/jolokia-core

Configuration initConfig(ServletConfig pConfig) {
  Configuration config = new Configuration(
      ConfigKey.AGENT_ID, NetworkUtil.getAgentId(hashCode(),"servlet"));
  // From ServletContext ....
  config.updateGlobalConfiguration(new ServletConfigFacade(pConfig));
  // ... and ServletConfig
  config.updateGlobalConfiguration(new ServletContextFacade(getServletContext()));
  // Set type last and overwrite anything written
  config.updateGlobalConfiguration(Collections.singletonMap(ConfigKey.AGENT_TYPE.getKeyValue(),"servlet"));
  return config;
}
org.jolokia.configConfiguration<init>

Javadoc

Convenience constructor for setting up base configuration with key values pairs. This constructor is especially suited for unit tests.

Popular methods of Configuration

  • get
    Get a configuration value if set as configuration or the default value if not
  • getAsBoolean
    Get an configuration value as boolean value. The value must be configured as 'true' for this method
  • getProcessingParameters
    Get processing parameters from a string-string map
  • updateGlobalConfiguration
    Update the configuration hold by this object
  • getAsInt
    Get an configuration value as int value

Popular in Java

  • Reading from database using SQL prepared statement
  • getResourceAsStream (ClassLoader)
  • getApplicationContext (Context)
  • runOnUiThread (Activity)
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Option (scala)
  • 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