示例#1
0
 /** {@inheritDoc} */
 @Override
 public void stop(@Nonnull BundleContext context) throws Exception {
   PLUGIN = null;
   bundleContext = null;
   persistenceServiceTracker.close();
   metaDataServiceTracker.close();
   writerServiceTracker.close();
   _genericServiceTracker.close();
 }
示例#2
0
  /** {@inheritDoc} */
  @Override
  public void start(@Nonnull BundleContext context) throws Exception {

    LOG.info("Jms2Ora is starting.");

    PLUGIN = this;
    bundleContext = context;

    _genericServiceTracker =
        new GenericServiceTracker<ISessionService>(context, ISessionService.class);
    _genericServiceTracker.open();

    metaDataServiceTracker = new MetaDataReaderServiceTracker(context);
    metaDataServiceTracker.open();

    persistenceServiceTracker = new MessagePersistenceServiceTracker(context);
    persistenceServiceTracker.open();

    writerServiceTracker = new MessageWriterServiceTracker(context);
    writerServiceTracker.open();
  }
示例#3
0
 /**
  * Adds a service listener for the XMPP service
  *
  * @param sessionServiceListener
  */
 public void addSessionServiceListener(
     IGenericServiceListener<ISessionService> sessionServiceListener) {
   _genericServiceTracker.addServiceListener(sessionServiceListener);
 }