当前位置: 首页>>代码示例>>Java>>正文


Java GlobalKCBServiceLocator类代码示例

本文整理汇总了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);
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:12,代码来源:KCBInitializer.java

示例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);
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:9,代码来源:MessageServiceTest.java

示例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);
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:16,代码来源:MessageDeliveryServiceTest.java

示例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" });
    }
 
开发者ID:kuali,项目名称:kc-rice,代码行数:14,代码来源:RecipientDelivererConfigTest.java

示例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);
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:14,代码来源:RecipientPreferenceTest.java

示例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);
}
 
开发者ID:kuali,项目名称:rice,代码行数:9,代码来源:MessageServiceTest.java

示例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);
}
 
开发者ID:kuali,项目名称:rice,代码行数:16,代码来源:MessageDeliveryServiceTest.java

示例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);
}
 
开发者ID:aapotts,项目名称:kuali_rice,代码行数:9,代码来源:MessageServiceTest.java

示例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);
}
 
开发者ID:aapotts,项目名称:kuali_rice,代码行数:16,代码来源:MessageDeliveryServiceTest.java

示例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);
}
 
开发者ID:aapotts,项目名称:kuali_rice,代码行数:14,代码来源:RecipientPreferenceTest.java

示例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();
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:8,代码来源:EmailMessageDeliverer.java

示例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();
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:7,代码来源:MessageProcessingJob.java

示例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();
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:7,代码来源:KCBInitializer.java

示例14: setUp

import org.kuali.rice.kcb.service.GlobalKCBServiceLocator; //导入依赖的package包/类
@Override
public void setUp() throws Exception {
    super.setUp();
    services = GlobalKCBServiceLocator.getInstance();
}
 
开发者ID:kuali,项目名称:kc-rice,代码行数:6,代码来源:KCBTestCase.java

示例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();
}
 
开发者ID:aapotts,项目名称:kuali_rice,代码行数:7,代码来源:MessageProcessingJob.java


注:本文中的org.kuali.rice.kcb.service.GlobalKCBServiceLocator类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。