Class ManagedAttribute
- java.lang.Object
- org.springframework.jmx.export.metadata.AbstractJmxAttribute
- org.springframework.jmx.export.metadata.ManagedAttribute
public class ManagedAttribute extends AbstractJmxAttribute
Metadata that indicates to expose a given bean property as JMX attribute. Only valid when used on a JavaBean getter or setter.- Since:
- 1.2
- Author:
- Rob Harrop
- See Also:
MetadataMBeanInfoAssembler,MBeanExporter
Field Summary
Fields Modifier and Type Field Description static ManagedAttributeEMPTY
Constructor Summary
Constructors Constructor Description ManagedAttribute()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetDefaultValue()Return the default value of this attribute.intgetPersistPeriod()StringgetPersistPolicy()voidsetDefaultValue(Object defaultValue)Set the default value of this attribute.voidsetPersistPeriod(int persistPeriod)voidsetPersistPolicy(String persistPolicy)Methods inherited from class org.springframework.jmx.export.metadata.AbstractJmxAttribute
getCurrencyTimeLimit, getDescription, setCurrencyTimeLimit, setDescription
Field Detail
EMPTY
public static final ManagedAttribute EMPTY
Constructor Detail
ManagedAttribute
public ManagedAttribute()
Method Detail
setDefaultValue
public void setDefaultValue(Object defaultValue)
Set the default value of this attribute.
getDefaultValue
public Object getDefaultValue()
Return the default value of this attribute.
setPersistPolicy
public void setPersistPolicy(String persistPolicy)
getPersistPolicy
public String getPersistPolicy()
setPersistPeriod
public void setPersistPeriod(int persistPeriod)
getPersistPeriod
public int getPersistPeriod()