Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (c) 2011 Frank Appel and others. All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at Contributors: Frank Appel - initial API and implementation Holger Staudacher - ongoing development /
package com.eclipsesource.jaxrs.publisher.internal;
import  org.osgi.framework.BundleContext;
import  org.osgi.framework.ServiceReference;
import  org.osgi.service.http.HttpService;
import  org.osgi.util.tracker.ServiceTracker;
public class HttpTracker extends ServiceTracker<HttpService, HttpService> {
  private final JAXRSConnector connector;
  HttpTracker( BundleContext contextJAXRSConnector connector ) {
    supercontext, HttpService.class.getName(), null );
    this. = connector;
  public HttpService addingService( ServiceReference<HttpService> reference ) {
    return .addHttpServicereference );
  public void removedService( ServiceReference<HttpService> reference, HttpService service ) {
    .removeHttpServiceservice );
New to GrepCode? Check out our FAQ X