本文整理汇总了Java中org.kuali.rice.kcb.service.GlobalKCBServiceLocator类的典型用法代码示例。如果您正苦于以下问题:Java GlobalKCBServiceLocator类的具体用法?Java GlobalKCBServiceLocator怎么用?Java GlobalKCBServiceLocator使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
GlobalKCBServiceLocator类属于org.kuali.rice.kcb.service包,在下文中一共展示了GlobalKCBServiceLocator类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: afterPropertiesSet
import org.kuali.rice.kcb.service.GlobalKCBServiceLocator; //导入依赖的package包/类
@Override
public void afterPropertiesSet() throws Exception {
GlobalKCBServiceLocator.init(beanFactory);
// kill the reference, our job is done
beanFactory = null;
Scheduler scheduler = getScheduler()==null?KSBServiceLocator.getScheduler():getScheduler();
scheduler.addJob(messageProcessingJobDetail, true);
addTriggerToScheduler(messageProcessingTrigger);
}
示例2: setUp
import org.kuali.rice.kcb.service.GlobalKCBServiceLocator; //导入依赖的package包/类
@Override
public void setUp() throws Exception {
super.setUp();
messageService = GlobalKCBServiceLocator.getInstance().getKcbMessageService();
MESSAGE = KCBTestData.getMessage1();
MESSAGE = messageService.saveMessage(MESSAGE);
}
示例3: setUp
import org.kuali.rice.kcb.service.GlobalKCBServiceLocator; //导入依赖的package包/类
@Override
public void setUp() throws Exception {
super.setUp();
messageService = GlobalKCBServiceLocator.getInstance().getKcbMessageService();
messageDeliveryService = GlobalKCBServiceLocator.getInstance().getMessageDeliveryService();
MESSAGE = KCBTestData.getMessage1();
MESSAGE = messageService.saveMessage(MESSAGE);
MESSAGE_DELIV = KCBTestData.getMessageDelivery1();
MESSAGE_DELIV.setMessage(MESSAGE);
MESSAGE_DELIV = messageDeliveryService.saveMessageDelivery(MESSAGE_DELIV);
}
示例4: setUp
import org.kuali.rice.kcb.service.GlobalKCBServiceLocator; //导入依赖的package包/类
@Override
public void setUp() throws Exception {
super.setUp();
prefsvc = GlobalKCBServiceLocator.getInstance().getRecipientPreferenceService();
// CFG = new RecipientDelivererConfig();
// CFG.setRecipientId("user1");
// CFG.setDelivererName("mock");
// CFG.setChannel("channel1");
prefsvc.saveRecipientDelivererConfig("user1", "mock", new String[] { "channel1" });
}
示例5: setUp
import org.kuali.rice.kcb.service.GlobalKCBServiceLocator; //导入依赖的package包/类
@Override
public void setUp() throws Exception {
super.setUp();
prefsvc = GlobalKCBServiceLocator.getInstance().getRecipientPreferenceService();
PREF = new RecipientPreference();
PREF.setRecipientId("user1");
PREF.setProperty("property1");
PREF.setValue("value1");
PREF = prefsvc.saveRecipientPreference(PREF);
}
示例6: setUp
import org.kuali.rice.kcb.service.GlobalKCBServiceLocator; //导入依赖的package包/类
@Override
public void setUp() throws Exception {
super.setUp();
messageService = GlobalKCBServiceLocator.getInstance().getMessageService();
MESSAGE = KCBTestData.getMessage1();
MESSAGE = messageService.saveMessage(MESSAGE);
}
示例7: setUp
import org.kuali.rice.kcb.service.GlobalKCBServiceLocator; //导入依赖的package包/类
@Override
public void setUp() throws Exception {
super.setUp();
messageService = GlobalKCBServiceLocator.getInstance().getMessageService();
messageDeliveryService = GlobalKCBServiceLocator.getInstance().getMessageDeliveryService();
MESSAGE = KCBTestData.getMessage1();
MESSAGE = messageService.saveMessage(MESSAGE);
MESSAGE_DELIV = KCBTestData.getMessageDelivery1();
MESSAGE_DELIV.setMessage(MESSAGE);
MESSAGE_DELIV = messageDeliveryService.saveMessageDelivery(MESSAGE_DELIV);
}
示例8: setUp
import org.kuali.rice.kcb.service.GlobalKCBServiceLocator; //导入依赖的package包/类
@Override
public void setUp() throws Exception {
super.setUp();
messageService = GlobalKCBServiceLocator.getInstance().getMessageService();
MESSAGE = KCBTestData.getMessage1();
messageService.saveMessage(MESSAGE);
}
示例9: setUp
import org.kuali.rice.kcb.service.GlobalKCBServiceLocator; //导入依赖的package包/类
@Override
public void setUp() throws Exception {
super.setUp();
messageService = GlobalKCBServiceLocator.getInstance().getMessageService();
messageDeliveryService = GlobalKCBServiceLocator.getInstance().getMessageDeliveryService();
MESSAGE = KCBTestData.getMessage1();
messageService.saveMessage(MESSAGE);
MESSAGE_DELIV = KCBTestData.getMessageDelivery1();
MESSAGE_DELIV.setMessage(MESSAGE);
messageDeliveryService.saveMessageDelivery(MESSAGE_DELIV);
}
示例10: setUp
import org.kuali.rice.kcb.service.GlobalKCBServiceLocator; //导入依赖的package包/类
@Override
public void setUp() throws Exception {
super.setUp();
prefsvc = GlobalKCBServiceLocator.getInstance().getRecipientPreferenceService();
PREF = new RecipientPreference();
PREF.setRecipientId("user1");
PREF.setProperty("property1");
PREF.setValue("value1");
prefsvc.saveRecipientPreference(PREF);
}
示例11: EmailMessageDeliverer
import org.kuali.rice.kcb.service.GlobalKCBServiceLocator; //导入依赖的package包/类
/**
* Constructs a EmailMessageDeliverer.java.
*/
public EmailMessageDeliverer() {
this.emailService = GlobalKCBServiceLocator.getInstance().getEmailService();
this.recipientPreferenceService = GlobalKCBServiceLocator.getInstance().getRecipientPreferenceService();
}
示例12: MessageProcessingJob
import org.kuali.rice.kcb.service.GlobalKCBServiceLocator; //导入依赖的package包/类
public MessageProcessingJob() {
registry = GlobalKCBServiceLocator.getInstance().getMessageDelivererRegistryService();
messageDeliveryService = GlobalKCBServiceLocator.getInstance().getMessageDeliveryService();
txManager = GlobalKCBServiceLocator.getInstance().getTransactionManager();
dataObjectService = KRADServiceLocator.getDataObjectService();
}
示例13: destroy
import org.kuali.rice.kcb.service.GlobalKCBServiceLocator; //导入依赖的package包/类
@Override
public void destroy() throws Exception {
// prevent anything from accessing our services after the module has been destroyed/shutdown
// our module's lifecycle is tied to the Spring context lifecycle for now
GlobalKCBServiceLocator.destroy();
}
示例14: setUp
import org.kuali.rice.kcb.service.GlobalKCBServiceLocator; //导入依赖的package包/类
@Override
public void setUp() throws Exception {
super.setUp();
services = GlobalKCBServiceLocator.getInstance();
}
示例15: MessageProcessingJob
import org.kuali.rice.kcb.service.GlobalKCBServiceLocator; //导入依赖的package包/类
public MessageProcessingJob() {
dao = GlobalKCBServiceLocator.getInstance().getKcbGenericDao();
registry = GlobalKCBServiceLocator.getInstance().getMessageDelivererRegistryService();
messageDeliveryService = GlobalKCBServiceLocator.getInstance().getMessageDeliveryService();
txManager = GlobalKCBServiceLocator.getInstance().getTransactionManager();
}