Package org.osgi.util.tracker

Examples of org.osgi.util.tracker.ServiceTracker


  }

  private void init() throws IOException {
    plugin = this;
    _resourceBundle = ResourceBundle.getBundle("de.innovationgate.eclipse.editors.resources");   
    _proxyServiceTracker = new ServiceTracker(getBundle().getBundleContext(), IProxyService.class.getName(), null);
    _proxyServiceTracker.open();
    setDebugging(Boolean.parseBoolean(System.getProperty(SYSPROP_DEBUG, "false")));

    try {
      File resourceManager = new File(getStateLocation().toFile(), "resourceManager");
View Full Code Here


    context.addBundleListener(this);
  }

  private void init() {
    try {
      _proxyServiceTracker = new ServiceTracker(getBundle().getBundleContext(), IProxyService.class.getName(), null);
      _proxyServiceTracker.open();

      setDebugging(Boolean.parseBoolean(System.getProperty(SYSPROP_DEBUG, "false")));
     
      // init resource manager
View Full Code Here

  public void start(BundleContext context) throws Exception {
    this.context = context;

    context.registerService(this.getClass().getName(), this, null);

    tracker = new ServiceTracker(context, FooService.class.getName(), this);
    tracker.open();
  }
View Full Code Here

  public void start(BundleContext context) throws Exception {
    this.context = context;

    context.registerService(this.getClass().getName(), this, null);

    tracker = new ServiceTracker(context, FooService.class.getName(), this);
    tracker.open();
  }
View Full Code Here

    InputStream in = null;

    if(xml_parser == null){
      xml_parser = new KXmlParser();

      confAdminTracker = new ServiceTracker(bc, ConfigurationAdmin.class.getName(), null);
      confAdminTracker.open();
    }

    currentBMTR = new BundleMetaTypeResource(b);
View Full Code Here

  /**
   * Initialize log and start SCR.
   */
  public void start(BundleContext bc) throws Exception {
    Activator.bc = bc;
    logTracker = new ServiceTracker(bc, LogService.class.getName(), null);
    logTracker.open();
    scr = new SCR(bc);
    scr.start();
  }
View Full Code Here

  public ConsoleSwing(BundleContext bc)  {
    this.bc              = bc;
    this.theConsoleSwing = this;
    // Set up service tracker for the console service.
    consoleTracker = new ServiceTracker(bc, consoleServiceName, this);
  }
View Full Code Here

  ServiceUserThread thread;

  public void start(BundleContext bc) throws Exception {
    Activator.bc = bc;
    log("starting");
    tracker =  new ServiceTracker(bc,
                                  DateService.class.getName(),
                                  customizer);
    tracker.open();
  }
View Full Code Here

  }

  public void open() {
    super.open();

    psTracker = new ServiceTracker(bc,
                                   PreferencesService.class.getName(),
                                   null) {
        public Object addingService(ServiceReference sr) {
          Object obj = super.addingService(sr);
          reinit();
View Full Code Here

            Filter filter = Activator.bc.createFilter("(&(" +
                    org.osgi.service.device.Constants.DEVICE_CATEGORY + "=" +
                    JiniDriver.DEVICE_CATEGORY + ")(" + JiniDriver.EXPORT +
                    "=*))");
            ServiceTrackerCustomizer serviceTrackerCustomizer = new JiniExporter();
            serviceTracker = new ServiceTracker(Activator.bc, filter,
                    serviceTrackerCustomizer);
        } catch (Exception ex) {
            serviceTracker = null;
            Debug.printDebugInfo(10,
                "Could not setup up the OSGi to Jini Bridge", ex);
View Full Code Here

TOP

Related Classes of org.osgi.util.tracker.ServiceTracker

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.