【发布时间】:2013-07-08 05:01:15
【问题描述】:
我有一门课如下:
public class SensitivityDescription {
private final String measureId;
private final ColumnType type; private final String sensName;
private final SensType sensType;
private final ServicePhase svcPhase;
private final AggregateFunction agFn;
private final String positionEnum;
private static List <SensitivityDescription> senRecordList = new ArrayList<SensitivityDescription> ();
public SensitivityDescription(String measureId, ColumnType type,
String sensName, SensType sensType, ServicePhase svcPhase,
AggregateFunction agFn, String positionEnum) {
super();
this.measureId = measureId;
this.type = type;
this.sensName = sensName;
this.sensType = sensType;
this.svcPhase = svcPhase;
this.agFn = agFn;
this.positionEnum = positionEnum;
}
我需要用SensitivityDescription 类的对象填充static senRecordList。如何在spring xml 中执行此操作。
【问题讨论】:
-
请注意,senRecordList 是静态的,因此理想情况下不需要对象来填充它
标签: spring