コード例 #1
0
  /**
   * initialize the cep service here.
   *
   * @param context
   */
  protected void activate(ComponentContext context) {

    try {
      EmailMonitorServiceInterface emailMonitorServiceInterface =
          EmailMonitorValueHolder.getInstance().getEmailMonitorService();
      context
          .getBundleContext()
          .registerService(
              EmailMonitorServiceInterface.class.getName(), emailMonitorServiceInterface, null);
      log.info("Successfully deployed the Email Monitor Service");
    } catch (Throwable e) {
      log.error("Can not create the Email Monitor Service ", e);
    }
  }
コード例 #2
0
 protected void setRegistryService(RegistryService registryService) {
   EmailMonitorValueHolder.getInstance().setRegistryService(registryService);
 }
コード例 #3
0
 protected void unsetOutputEventAdaptorService(
     OutputEventAdaptorManagerService outputEventAdaptorManagerService) {
   EmailMonitorValueHolder.getInstance()
       .unsetsetOutputEventAdaptorManagerService(outputEventAdaptorManagerService);
 }
コード例 #4
0
 protected void unsetEventProcessorService(EventProcessorService eventProcessorService) {
   EmailMonitorValueHolder.getInstance().unsetEventProcessorService();
 }
コード例 #5
0
 protected void unsetEventFormatterService(EventFormatterService eventFormatterService) {
   EmailMonitorValueHolder.getInstance().unsetEventFormatterService(eventFormatterService);
 }
コード例 #6
0
 protected void unsetEventStreamService(EventStreamService eventStreamService) {
   EmailMonitorValueHolder.getInstance().unsetEventStreamService();
 }