Created
May 10, 2012 01:59
-
-
Save amir20/2650445 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/main/java/poscore/service/AssumingSingleUtilityUtilitiesService.java b/src/main/java/poscore/service/AssumingSingleUtilityUtilitiesService.java | |
index 508cad9..c643e5e 100644 | |
--- a/src/main/java/poscore/service/AssumingSingleUtilityUtilitiesService.java | |
+++ b/src/main/java/poscore/service/AssumingSingleUtilityUtilitiesService.java | |
@@ -2,6 +2,7 @@ package poscore.service; | |
import java.util.List; | |
import org.springframework.beans.factory.annotation.Autowired; | |
+import org.springframework.beans.factory.annotation.Value; | |
import org.springframework.stereotype.Service; | |
import poscore.dao.UtilityCompanyDAO; | |
import poscore.model.Subscription; | |
@@ -16,7 +17,7 @@ import poscore.model.types.NotificationChannel; | |
* | |
* @author jeff | |
*/ | |
-@Service | |
+@Service("utilitiesService") | |
public class AssumingSingleUtilityUtilitiesService implements UtilitiesService, SubscriptionProvider { | |
private UtilityCompanyDAO utilityCompanyDAO; | |
@@ -120,6 +121,7 @@ public class AssumingSingleUtilityUtilitiesService implements UtilitiesService, | |
return emailReportEligibleUtility; | |
} | |
+ @Value("${report.delivery.email:false}") | |
public void setEmailReportEligibleUtility(boolean emailReportEligibleUtility) { | |
this.emailReportEligibleUtility = emailReportEligibleUtility; | |
} | |
diff --git a/src/main/resources/config/coreContext.xml b/src/main/resources/config/coreContext.xml | |
index 4a8114e..131d3b4 100644 | |
--- a/src/main/resources/config/coreContext.xml | |
+++ b/src/main/resources/config/coreContext.xml | |
@@ -22,10 +22,6 @@ | |
<bean id="utilityAccountService" class="poscore.service.impl.UtilityAccountServiceImpl"/> | |
- <bean id="utilitiesService" class="poscore.service.AssumingSingleUtilityUtilitiesService" primary="true"> | |
- <property name="emailReportEligibleUtility" value="${report.delivery.email:false}"/> | |
- </bean> | |
- | |
<bean id="billPeriodService" class="poscore.service.impl.BillPeriodServiceImpl" /> | |
<bean id="passwordEncryptor" class="org.jasypt.util.password.ConfigurablePasswordEncryptor"> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment