1 16 17 package org.springframework.jmx.export.metadata; 18 19 28 public class ManagedAttribute extends AbstractJmxAttribute { 29 30 public static final ManagedAttribute EMPTY = new ManagedAttribute(); 31 32 33 private Object defaultValue; 34 35 private String persistPolicy; 36 37 private int persistPeriod = -1; 38 39 40 public void setDefaultValue(Object defaultValue) { 41 this.defaultValue = defaultValue; 42 } 43 44 public Object getDefaultValue() { 45 return defaultValue; 46 } 47 48 public void setPersistPolicy(String persistPolicy) { 49 this.persistPolicy = persistPolicy; 50 } 51 52 public String getPersistPolicy() { 53 return persistPolicy; 54 } 55 56 public void setPersistPeriod(int persistPeriod) { 57 this.persistPeriod = persistPeriod; 58 } 59 60 public int getPersistPeriod() { 61 return persistPeriod; 62 } 63 64 } 65 | Popular Tags |