Package org.jolokia.support.spring
Class SpringJolokiaConfigHolder
java.lang.Object
org.jolokia.support.spring.SpringJolokiaConfigHolder
- All Implemented Interfaces:
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
-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
SpringJolokiaConfigHolder
public SpringJolokiaConfigHolder()
-
-
Method Details
-
getConfig
Get tge configuration as a free-form map- Returns:
- config map
-
setConfig
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:
getOrderin interfaceorg.springframework.core.Ordered
-