1 12 13 package org.eclipse.equinox.http.servlet.internal; 14 15 import org.osgi.framework.*; 16 17 public class HttpServiceFactory implements ServiceFactory { 19 20 private ProxyServlet proxy; 21 22 public HttpServiceFactory(ProxyServlet proxy) { 23 this.proxy = proxy; 24 } 25 26 public Object getService(Bundle bundle, ServiceRegistration registration) { 27 return new HttpServiceImpl(bundle, proxy); 28 } 29 30 public void ungetService(Bundle bundle, ServiceRegistration registration, Object service) { 31 ((HttpServiceImpl) service).unregisterAliases(); 32 33 } 34 35 } 36 | Popular Tags |