Class SpringJolokiaConfigHolder

java.lang.Object
org.jolokia.support.spring.SpringJolokiaConfigHolder
All Implemented Interfaces:
org.springframework.core.Ordered

public class SpringJolokiaConfigHolder extends Object implements org.springframework.core.Ordered
Configuration wrapper for a spring based configuration. It simply wraps a string-string map for values. The content of this object is used for building up a JolokiaServerConfig for the server to start.

Multiple config objects can be present in a context, their precedence in decided upon the order: The higher the order, the more important the configuration is (overriding lower ordered configs). A server will pick them up, if its lookupConfigs property is set to true (by default it is "false").

You should use <jolokia:config> for defining configuration, either as standalone configuration (if using the "plugin") or as an embedded element to <jolokia:server>

Since:
28.12.12
Author:
roland
  • Constructor Details

    • SpringJolokiaConfigHolder

      public SpringJolokiaConfigHolder()
  • Method Details

    • getConfig

      public Map<String,String> getConfig()
      Get tge configuration as a free-form map
      Returns:
      config map
    • setConfig

      public void setConfig(Map<String,String> pConfig)
      Set the configuration values
      Parameters:
      pConfig - configuration to set
    • setOrder

      public void setOrder(int pOrder)
      Set the order or priority of this configuration. Higher orders mean higher priority.
      Parameters:
      pOrder - order to set
    • getOrder

      public int getOrder()
      Specified by:
      getOrder in interface org.springframework.core.Ordered