Package org.eclipse.ecf.remoteservice.eventadmin.serialization

Examples of org.eclipse.ecf.remoteservice.eventadmin.serialization.SerializationHandler


    etfServiceTracker.open();

    // SerializationHandler are responsible to handle serialization of Event properties
    shServiceTracker = new ServiceTracker(this.context, SerializationHandler.class, new ServiceTrackerCustomizer() {
      public Object addingService(ServiceReference reference) {
        final SerializationHandler sh = (SerializationHandler) context.getService(reference);
        topic2serializationHandler.put(sh.getTopic(), sh);
        return sh;
      }

      public void modifiedService(ServiceReference reference,
          Object service) {
        // nop
      }

      public void removedService(ServiceReference reference,
          Object service) {
        final SerializationHandler sh = (SerializationHandler) service;
        topic2serializationHandler.remove(sh.getTopic());
      }
    });
    shServiceTracker.open();
  }
View Full Code Here


  /**
   * @since 1.2
   */
  protected SerializationHandler getSerializationHandler(String topic) {
    final SerializationHandler sh = (SerializationHandler) topic2serializationHandler.get(topic);
    if (sh == null) {
      return DefaultSerializationHandler.INST;
    }
    return sh;
  }
View Full Code Here

TOP

Related Classes of org.eclipse.ecf.remoteservice.eventadmin.serialization.SerializationHandler

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.