use of org.springframework.context.support.ClassPathXmlApplicationContext in project ORCID-Source by ORCID.
the class MigrateFundingAmountToANumericValue method init.
@SuppressWarnings("resource")
private void init() {
ApplicationContext context = new ClassPathXmlApplicationContext("orcid-core-context.xml");
profileFundingDao = (ProfileFundingDao) context.getBean("profileFundingDao");
transactionTemplate = (TransactionTemplate) context.getBean("transactionTemplate");
}
use of org.springframework.context.support.ClassPathXmlApplicationContext in project ORCID-Source by ORCID.
the class IndexProfiles method init.
@SuppressWarnings("resource")
private void init() {
ApplicationContext context = new ClassPathXmlApplicationContext("orcid-core-context.xml");
orcidProfileManager = (OrcidProfileManager) context.getBean("orcidProfileManager");
orcidIndexManager = (OrcidIndexManager) context.getBean("orcidIndexManager");
profileDao = (ProfileDao) context.getBean("profileDao");
}
use of org.springframework.context.support.ClassPathXmlApplicationContext in project ORCID-Source by ORCID.
the class GetSalesForceAccessToken method main.
@SuppressWarnings("resource")
public static void main(String[] args) {
ApplicationContext context = new ClassPathXmlApplicationContext("orcid-core-context.xml");
SalesForceDao salesForceDao = (SalesForceDao) context.getBean("salesForceDao");
String accessToken = salesForceDao.getAccessToken();
System.out.println(accessToken);
System.exit(0);
}
use of org.springframework.context.support.ClassPathXmlApplicationContext in project ORCID-Source by ORCID.
the class GetConsortiumFromSalesForceById method main.
@SuppressWarnings("resource")
public static void main(String[] args) {
ApplicationContext context = new ClassPathXmlApplicationContext("orcid-core-context.xml");
SalesForceManager salesForceManager = (SalesForceManager) context.getBean("salesForceManager");
Consortium consortium = salesForceManager.retrieveConsortium(args[0]);
System.out.println(consortium);
System.exit(0);
}
use of org.springframework.context.support.ClassPathXmlApplicationContext in project ORCID-Source by ORCID.
the class SendBadOrgsEmail method init.
@SuppressWarnings("resource")
private void init() {
ApplicationContext context = new ClassPathXmlApplicationContext("orcid-core-context.xml");
transactionTemplate = (TransactionTemplate) context.getBean("transactionTemplate");
profileDao = (ProfileDao) context.getBean("profileDao");
affiliationsManager = (AffiliationsManager) context.getBean("affiliationsManager");
profileFundingManager = (ProfileFundingManager) context.getBean("profileFundingManager");
localeManager = (LocaleManager) context.getBean("localeManager");
templateManager = (TemplateManager) context.getBean("templateManager");
messageSource = (MessageSource) context.getBean("messageSource");
orcidUrlManager = (OrcidUrlManager) context.getBean("orcidUrlManager");
mailGunManager = (MailGunManager) context.getBean("mailGunManager");
notificationManager = (NotificationManager) context.getBean("notificationManager");
}
Aggregations