静态列表我有一个类如下:正在初始化使用弹簧
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
class.How的对象来填充static senRecordList
做我的Spring XML做到这一点。
可能重复[是否有可能使用Spring配置创建集合?](http://stackoverflow.com/questions/14012524/is-it-possible-to-create-a-collections-with-spring-配置) – Makoto
请注意senRecordList是静态的,所以理想情况下不应该需要一个对象来填充它 – user1736924