1 18 19 package org.osgi.service.component; 20 21 import java.util.Dictionary ; 22 23 import org.osgi.framework.*; 24 25 64 public interface ComponentContext { 65 71 public Dictionary getProperties(); 72 73 93 public Object locateService(String name); 94 95 111 public Object locateService(String name, ServiceReference reference); 112 113 125 public Object [] locateServices(String name); 126 127 134 public BundleContext getBundleContext(); 135 136 157 public Bundle getUsingBundle(); 158 159 165 public ComponentInstance getComponentInstance(); 166 167 174 public void enableComponent(String name); 175 176 182 public void disableComponent(String name); 183 184 196 public ServiceReference getServiceReference(); 197 198 } 199 | Popular Tags |