Autowired private void setSystemManager SystemManagerImplDel egate sys

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
@Autowired
private void setSystemManager(SystemManagerImplDelegate systemManager) {
try {
String sessionId = "";
smtpHostName = systemManager.getGlobalConfigValue(sessionId, "Mail", "Host");
smtpPort = systemManager.getGlobalConfigValue(sessionId, "Mail", "Port");
userName = systemManager.getGlobalConfigValue(sessionId, "Mail", "UserName");
password = systemManager.getGlobalConfigValue(sessionId, "Mail", "Passwd");
} catch (ApplicationException e) {
e.printStackTrace();
}
}