Merge "Issue #1802: Eliminated a call to new on StatsDao in AggregateManager" into development
Former-commit-id:2ec3e76c1c
[formerly59393b633a
] [formerly8583a5f785
] [formerly51bf00bf1c
[formerly8583a5f785
[formerly bf39f3c73e4de589855abda284c6d2d46543d283]]] Former-commit-id:51bf00bf1c
Former-commit-id: 9d4afc316993b2f4357647dcee834eee6af6bfcd [formerlydb5a8b9865
] Former-commit-id:ee26b669e3
This commit is contained in:
commit
a5bb46da22
2 changed files with 8 additions and 3 deletions
|
@ -13,6 +13,7 @@
|
||||||
<bean id="aggregateManager" class="com.raytheon.uf.edex.stats.AggregateManager">
|
<bean id="aggregateManager" class="com.raytheon.uf.edex.stats.AggregateManager">
|
||||||
<constructor-arg value="${stats.period}"/>
|
<constructor-arg value="${stats.period}"/>
|
||||||
<property name="aggregateDao" ref="aggregateRecordDao"/>
|
<property name="aggregateDao" ref="aggregateRecordDao"/>
|
||||||
|
<property name="statsRecordDao" ref="statsDao"/>
|
||||||
<property name="jaxbManager" ref="statsGroupingColumnJaxbManager"/>
|
<property name="jaxbManager" ref="statsGroupingColumnJaxbManager"/>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
|
|
|
@ -88,6 +88,8 @@ public class AggregateManager {
|
||||||
|
|
||||||
private AggregateRecordDao aggregateDao;
|
private AggregateRecordDao aggregateDao;
|
||||||
|
|
||||||
|
private StatsDao statsRecordDao;
|
||||||
|
|
||||||
private static final Object[] EMPTY_OBJ_ARR = new Object[0];
|
private static final Object[] EMPTY_OBJ_ARR = new Object[0];
|
||||||
|
|
||||||
private static JAXBManager jaxbManager;
|
private static JAXBManager jaxbManager;
|
||||||
|
@ -223,7 +225,6 @@ public class AggregateManager {
|
||||||
public void scan() throws Exception {
|
public void scan() throws Exception {
|
||||||
long t0 = System.currentTimeMillis();
|
long t0 = System.currentTimeMillis();
|
||||||
ConfigLoader configLoader = ConfigLoader.getInstance();
|
ConfigLoader configLoader = ConfigLoader.getInstance();
|
||||||
StatsDao statsRecordDao = new StatsDao();
|
|
||||||
|
|
||||||
Map<String, StatisticsEvent> statsMap = configLoader.getTypeView();
|
Map<String, StatisticsEvent> statsMap = configLoader.getTypeView();
|
||||||
|
|
||||||
|
@ -372,8 +373,11 @@ public class AggregateManager {
|
||||||
this.aggregateDao = aggregateDao;
|
this.aggregateDao = aggregateDao;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setJaxbManager(JAXBManager jaxbManager) {
|
public void setStatsRecordDao(StatsDao statsRecordDao) {
|
||||||
this.jaxbManager = jaxbManager;
|
this.statsRecordDao = statsRecordDao;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void setJaxbManager(JAXBManager jaxbManager) {
|
||||||
|
AggregateManager.jaxbManager = jaxbManager;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue