| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| <!-- NewPage --> |
| <html lang="en"> |
| <head> |
| <!-- Generated by javadoc (version 1.7.0_25) on Mon Mar 31 09:56:25 CEST 2014 --> |
| <meta http-equiv="Content-Type" content="text/html" charset="UTF-8"> |
| <title>ServiceContext (Apache Felix iPOJO ~ JavaDoc 1.11.2 API)</title> |
| <meta name="date" content="2014-03-31"> |
| <link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style"> |
| </head> |
| <body> |
| <script type="text/javascript"><!-- |
| if (location.href.indexOf('is-external=true') == -1) { |
| parent.document.title="ServiceContext (Apache Felix iPOJO ~ JavaDoc 1.11.2 API)"; |
| } |
| //--> |
| </script> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| <!-- ========= START OF TOP NAVBAR ======= --> |
| <div class="topNav"><a name="navbar_top"> |
| <!-- --> |
| </a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../overview-summary.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="class-use/ServiceContext.html">Use</a></li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../../index-all.html">Index</a></li> |
| </ul> |
| </div> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li><a href="../../../../org/apache/felix/ipojo/PrimitiveTypeDescription.InheritanceInspector.html" title="class in org.apache.felix.ipojo"><span class="strong">Prev Class</span></a></li> |
| <li><a href="../../../../org/apache/felix/ipojo/UnacceptableConfiguration.html" title="class in org.apache.felix.ipojo"><span class="strong">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../index.html?org/apache/felix/ipojo/ServiceContext.html" target="_top">Frames</a></li> |
| <li><a href="ServiceContext.html" target="_top">No Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_top"> |
| <li><a href="../../../../allclasses-noframe.html">All Classes</a></li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_top"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li>Nested | </li> |
| <li>Field | </li> |
| <li>Constr | </li> |
| <li><a href="#method_summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li>Field | </li> |
| <li>Constr | </li> |
| <li><a href="#method_detail">Method</a></li> |
| </ul> |
| </div> |
| <a name="skip-navbar_top"> |
| <!-- --> |
| </a></div> |
| <!-- ========= END OF TOP NAVBAR ========= --> |
| <!-- ======== START OF CLASS DATA ======== --> |
| <div class="header"> |
| <div class="subTitle">org.apache.felix.ipojo</div> |
| <h2 title="Interface ServiceContext" class="title">Interface ServiceContext</h2> |
| </div> |
| <div class="contentContainer"> |
| <div class="description"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <dl> |
| <dt>All Superinterfaces:</dt> |
| <dd><a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/BundleContext.html?is-external=true" title="class or interface in org.osgi.framework">BundleContext</a>, <a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/BundleReference.html?is-external=true" title="class or interface in org.osgi.framework">BundleReference</a></dd> |
| </dl> |
| <dl> |
| <dt>All Known Implementing Classes:</dt> |
| <dd><a href="../../../../org/apache/felix/ipojo/composite/CompositeServiceContext.html" title="class in org.apache.felix.ipojo.composite">CompositeServiceContext</a>, <a href="../../../../org/apache/felix/ipojo/IPojoContext.html" title="class in org.apache.felix.ipojo">IPojoContext</a>, <a href="../../../../org/apache/felix/ipojo/PolicyServiceContext.html" title="class in org.apache.felix.ipojo">PolicyServiceContext</a></dd> |
| </dl> |
| <hr> |
| <br> |
| <pre>public interface <a href="../../../../src-html/org/apache/felix/ipojo/ServiceContext.html#line.40">ServiceContext</a> |
| extends <a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/BundleContext.html?is-external=true" title="class or interface in org.osgi.framework">BundleContext</a></pre> |
| <div class="block">A service context is the facade of a service registry. |
| It gives the access to a service broker. All service |
| interactions should use a service context to garanty |
| the service isolation. |
| This class is a subset of <a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/BundleContext.html?is-external=true" title="class or interface in org.osgi.framework"><code>BundleContext</code></a> methods. |
| (methods implying interactions with the service registry). |
| So, refer to this class for further information.</div> |
| <dl><dt><span class="strong">Author:</span></dt> |
| <dd><a href="mailto:dev@felix.apache.org">Felix Project Team</a></dd> |
| <dt><span class="strong">See Also:</span></dt><dd><a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/BundleContext.html?is-external=true" title="class or interface in org.osgi.framework"><code>BundleContext</code></a></dd></dl> |
| </li> |
| </ul> |
| </div> |
| <div class="summary"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ========== METHOD SUMMARY =========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method_summary"> |
| <!-- --> |
| </a> |
| <h3>Method Summary</h3> |
| <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> |
| <caption><span>Methods</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colLast" scope="col">Method and Description</th> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/felix/ipojo/ServiceContext.html#addServiceListener(org.osgi.framework.ServiceListener)">addServiceListener</a></strong>(<a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/ServiceListener.html?is-external=true" title="class or interface in org.osgi.framework">ServiceListener</a> listener)</code> |
| <div class="block">Adds a service listener.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/felix/ipojo/ServiceContext.html#addServiceListener(org.osgi.framework.ServiceListener, java.lang.String)">addServiceListener</a></strong>(<a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/ServiceListener.html?is-external=true" title="class or interface in org.osgi.framework">ServiceListener</a> listener, |
| <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> filter)</code> |
| <div class="block">Adds a service listener.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code><a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/ServiceReference.html?is-external=true" title="class or interface in org.osgi.framework">ServiceReference</a>[]</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/felix/ipojo/ServiceContext.html#getAllServiceReferences(java.lang.String, java.lang.String)">getAllServiceReferences</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> clazz, |
| <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> filter)</code> |
| <div class="block">Gets the service references matching with the given query.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code><S> S</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/felix/ipojo/ServiceContext.html#getService(org.osgi.framework.ServiceReference)">getService</a></strong>(<a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/ServiceReference.html?is-external=true" title="class or interface in org.osgi.framework">ServiceReference</a><S> reference)</code> |
| <div class="block">Gets a service object.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code><a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/ServiceReference.html?is-external=true" title="class or interface in org.osgi.framework">ServiceReference</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/felix/ipojo/ServiceContext.html#getServiceReference(java.lang.String)">getServiceReference</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> clazz)</code> |
| <div class="block">Gets a service reference for the given interface.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code><a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/ServiceReference.html?is-external=true" title="class or interface in org.osgi.framework">ServiceReference</a>[]</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/felix/ipojo/ServiceContext.html#getServiceReferences(java.lang.String, java.lang.String)">getServiceReferences</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> clazz, |
| <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> filter)</code> |
| <div class="block">Gets service reference list for the given query.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code><a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/ServiceRegistration.html?is-external=true" title="class or interface in org.osgi.framework">ServiceRegistration</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/felix/ipojo/ServiceContext.html#registerService(java.lang.String[], java.lang.Object, java.util.Dictionary)">registerService</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[] clazzes, |
| <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> service, |
| <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Dictionary.html?is-external=true" title="class or interface in java.util">Dictionary</a><<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,?> properties)</code> |
| <div class="block">Registers a service inside this service context.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code><a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/ServiceRegistration.html?is-external=true" title="class or interface in org.osgi.framework">ServiceRegistration</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/felix/ipojo/ServiceContext.html#registerService(java.lang.String, java.lang.Object, java.util.Dictionary)">registerService</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> clazz, |
| <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> service, |
| <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Dictionary.html?is-external=true" title="class or interface in java.util">Dictionary</a><<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,?> properties)</code> |
| <div class="block">Registers a service inside this service context.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/felix/ipojo/ServiceContext.html#removeServiceListener(org.osgi.framework.ServiceListener)">removeServiceListener</a></strong>(<a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/ServiceListener.html?is-external=true" title="class or interface in org.osgi.framework">ServiceListener</a> listener)</code> |
| <div class="block">Removes a service listener.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/apache/felix/ipojo/ServiceContext.html#ungetService(org.osgi.framework.ServiceReference)">ungetService</a></strong>(<a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/ServiceReference.html?is-external=true" title="class or interface in org.osgi.framework">ServiceReference</a><?> reference)</code> |
| <div class="block">Ungets the service reference.</div> |
| </td> |
| </tr> |
| </table> |
| <ul class="blockList"> |
| <li class="blockList"><a name="methods_inherited_from_class_org.osgi.framework.BundleContext"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from interface org.osgi.framework.<a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/BundleContext.html?is-external=true" title="class or interface in org.osgi.framework">BundleContext</a></h3> |
| <code><a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/BundleContext.html?is-external=true#addBundleListener(org.osgi.framework.BundleListener)" title="class or interface in org.osgi.framework">addBundleListener</a>, <a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/BundleContext.html?is-external=true#addFrameworkListener(org.osgi.framework.FrameworkListener)" title="class or interface in org.osgi.framework">addFrameworkListener</a>, <a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/BundleContext.html?is-external=true#createFilter(java.lang.String)" title="class or interface in org.osgi.framework">createFilter</a>, <a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/BundleContext.html?is-external=true#getBundle()" title="class or interface in org.osgi.framework">getBundle</a>, <a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/BundleContext.html?is-external=true#getBundle(long)" title="class or interface in org.osgi.framework">getBundle</a>, <a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/BundleContext.html?is-external=true#getBundle(java.lang.String)" title="class or interface in org.osgi.framework">getBundle</a>, <a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/BundleContext.html?is-external=true#getBundles()" title="class or interface in org.osgi.framework">getBundles</a>, <a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/BundleContext.html?is-external=true#getDataFile(java.lang.String)" title="class or interface in org.osgi.framework">getDataFile</a>, <a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/BundleContext.html?is-external=true#getProperty(java.lang.String)" title="class or interface in org.osgi.framework">getProperty</a>, <a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/BundleContext.html?is-external=true#getServiceReference(java.lang.Class)" title="class or interface in org.osgi.framework">getServiceReference</a>, <a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/BundleContext.html?is-external=true#getServiceReferences(java.lang.Class, java.lang.String)" title="class or interface in org.osgi.framework">getServiceReferences</a>, <a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/BundleContext.html?is-external=true#installBundle(java.lang.String)" title="class or interface in org.osgi.framework">installBundle</a>, <a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/BundleContext.html?is-external=true#installBundle(java.lang.String, java.io.InputStream)" title="class or interface in org.osgi.framework">installBundle</a>, <a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/BundleContext.html?is-external=true#registerService(java.lang.Class, S, java.util.Dictionary)" title="class or interface in org.osgi.framework">registerService</a>, <a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/BundleContext.html?is-external=true#removeBundleListener(org.osgi.framework.BundleListener)" title="class or interface in org.osgi.framework">removeBundleListener</a>, <a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/BundleContext.html?is-external=true#removeFrameworkListener(org.osgi.framework.FrameworkListener)" title="class or interface in org.osgi.framework">removeFrameworkListener</a></code></li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| <div class="details"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ============ METHOD DETAIL ========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method_detail"> |
| <!-- --> |
| </a> |
| <h3>Method Detail</h3> |
| <a name="addServiceListener(org.osgi.framework.ServiceListener, java.lang.String)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>addServiceListener</h4> |
| <pre>void <a href="../../../../src-html/org/apache/felix/ipojo/ServiceContext.html#line.51">addServiceListener</a>(<a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/ServiceListener.html?is-external=true" title="class or interface in org.osgi.framework">ServiceListener</a> listener, |
| <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> filter) |
| throws <a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/InvalidSyntaxException.html?is-external=true" title="class or interface in org.osgi.framework">InvalidSyntaxException</a></pre> |
| <div class="block">Adds a service listener. |
| The listener is added to this service context. |
| So only services from this context will be tracked.</div> |
| <dl> |
| <dt><strong>Specified by:</strong></dt> |
| <dd><code><a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/BundleContext.html?is-external=true#addServiceListener(org.osgi.framework.ServiceListener, java.lang.String)" title="class or interface in org.osgi.framework">addServiceListener</a></code> in interface <code><a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/BundleContext.html?is-external=true" title="class or interface in org.osgi.framework">BundleContext</a></code></dd> |
| <dt><span class="strong">Parameters:</span></dt><dd><code>listener</code> - the service listener to add.</dd><dd><code>filter</code> - the LDAP filter</dd> |
| <dt><span class="strong">Throws:</span></dt> |
| <dd><code><a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/InvalidSyntaxException.html?is-external=true" title="class or interface in org.osgi.framework">InvalidSyntaxException</a></code> - if the LDAP filter is malformed</dd><dt><span class="strong">See Also:</span></dt><dd><a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/BundleContext.html?is-external=true#addServiceListener(org.osgi.framework.ServiceListener, java.lang.String)" title="class or interface in org.osgi.framework"><code>BundleContext.addServiceListener(org.osgi.framework.ServiceListener, java.lang.String)</code></a></dd></dl> |
| </li> |
| </ul> |
| <a name="addServiceListener(org.osgi.framework.ServiceListener)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>addServiceListener</h4> |
| <pre>void <a href="../../../../src-html/org/apache/felix/ipojo/ServiceContext.html#line.60">addServiceListener</a>(<a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/ServiceListener.html?is-external=true" title="class or interface in org.osgi.framework">ServiceListener</a> listener)</pre> |
| <div class="block">Adds a service listener. |
| The listener is added to this service context. |
| So only services from this context will be tracked.</div> |
| <dl> |
| <dt><strong>Specified by:</strong></dt> |
| <dd><code><a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/BundleContext.html?is-external=true#addServiceListener(org.osgi.framework.ServiceListener)" title="class or interface in org.osgi.framework">addServiceListener</a></code> in interface <code><a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/BundleContext.html?is-external=true" title="class or interface in org.osgi.framework">BundleContext</a></code></dd> |
| <dt><span class="strong">Parameters:</span></dt><dd><code>listener</code> - the service listener to add.</dd><dt><span class="strong">See Also:</span></dt><dd><a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/BundleContext.html?is-external=true#addServiceListener(org.osgi.framework.ServiceListener)" title="class or interface in org.osgi.framework"><code>BundleContext.addServiceListener(org.osgi.framework.ServiceListener)</code></a></dd></dl> |
| </li> |
| </ul> |
| <a name="getAllServiceReferences(java.lang.String, java.lang.String)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getAllServiceReferences</h4> |
| <pre><a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/ServiceReference.html?is-external=true" title="class or interface in org.osgi.framework">ServiceReference</a>[] <a href="../../../../src-html/org/apache/felix/ipojo/ServiceContext.html#line.72">getAllServiceReferences</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> clazz, |
| <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> filter) |
| throws <a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/InvalidSyntaxException.html?is-external=true" title="class or interface in org.osgi.framework">InvalidSyntaxException</a></pre> |
| <div class="block">Gets the service references matching with the given query. |
| The query is executed inside this service context.</div> |
| <dl> |
| <dt><strong>Specified by:</strong></dt> |
| <dd><code><a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/BundleContext.html?is-external=true#getAllServiceReferences(java.lang.String, java.lang.String)" title="class or interface in org.osgi.framework">getAllServiceReferences</a></code> in interface <code><a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/BundleContext.html?is-external=true" title="class or interface in org.osgi.framework">BundleContext</a></code></dd> |
| <dt><span class="strong">Parameters:</span></dt><dd><code>clazz</code> - the required interface</dd><dd><code>filter</code> - a LDAP filter</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>the array of available service references or <code>null</code> |
| if no providers are available.</dd> |
| <dt><span class="strong">Throws:</span></dt> |
| <dd><code><a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/InvalidSyntaxException.html?is-external=true" title="class or interface in org.osgi.framework">InvalidSyntaxException</a></code> - if the LDAP filter is malformed</dd><dt><span class="strong">See Also:</span></dt><dd><a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/BundleContext.html?is-external=true#getAllServiceReferences(java.lang.String, java.lang.String)" title="class or interface in org.osgi.framework"><code>BundleContext.getAllServiceReferences(java.lang.String, java.lang.String)</code></a></dd></dl> |
| </li> |
| </ul> |
| <a name="getService(org.osgi.framework.ServiceReference)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getService</h4> |
| <pre><S> S <a href="../../../../src-html/org/apache/felix/ipojo/ServiceContext.html#line.82">getService</a>(<a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/ServiceReference.html?is-external=true" title="class or interface in org.osgi.framework">ServiceReference</a><S> reference)</pre> |
| <div class="block">Gets a service object. |
| The given service reference must comes from this |
| service context.</div> |
| <dl> |
| <dt><strong>Specified by:</strong></dt> |
| <dd><code><a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/BundleContext.html?is-external=true#getService(org.osgi.framework.ServiceReference)" title="class or interface in org.osgi.framework">getService</a></code> in interface <code><a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/BundleContext.html?is-external=true" title="class or interface in org.osgi.framework">BundleContext</a></code></dd> |
| <dt><span class="strong">Parameters:</span></dt><dd><code>reference</code> - the required service reference</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>the service object or null if the service reference is no more valid or if the service object is not accessible</dd><dt><span class="strong">See Also:</span></dt><dd><a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/BundleContext.html?is-external=true#getService(org.osgi.framework.ServiceReference)" title="class or interface in org.osgi.framework"><code>BundleContext.getService(org.osgi.framework.ServiceReference)</code></a></dd></dl> |
| </li> |
| </ul> |
| <a name="getServiceReference(java.lang.String)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getServiceReference</h4> |
| <pre><a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/ServiceReference.html?is-external=true" title="class or interface in org.osgi.framework">ServiceReference</a> <a href="../../../../src-html/org/apache/felix/ipojo/ServiceContext.html#line.92">getServiceReference</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> clazz)</pre> |
| <div class="block">Gets a service reference for the given interface. |
| The query is executed inside this service context.</div> |
| <dl> |
| <dt><strong>Specified by:</strong></dt> |
| <dd><code><a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/BundleContext.html?is-external=true#getServiceReference(java.lang.String)" title="class or interface in org.osgi.framework">getServiceReference</a></code> in interface <code><a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/BundleContext.html?is-external=true" title="class or interface in org.osgi.framework">BundleContext</a></code></dd> |
| <dt><span class="strong">Parameters:</span></dt><dd><code>clazz</code> - the required interface name</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>a service reference on a available provider or |
| <code>null</code> if no providers are available</dd><dt><span class="strong">See Also:</span></dt><dd><a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/BundleContext.html?is-external=true#getServiceReference(java.lang.String)" title="class or interface in org.osgi.framework"><code>BundleContext.getServiceReference(java.lang.String)</code></a></dd></dl> |
| </li> |
| </ul> |
| <a name="getServiceReferences(java.lang.String, java.lang.String)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getServiceReferences</h4> |
| <pre><a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/ServiceReference.html?is-external=true" title="class or interface in org.osgi.framework">ServiceReference</a>[] <a href="../../../../src-html/org/apache/felix/ipojo/ServiceContext.html#line.104">getServiceReferences</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> clazz, |
| <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> filter) |
| throws <a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/InvalidSyntaxException.html?is-external=true" title="class or interface in org.osgi.framework">InvalidSyntaxException</a></pre> |
| <div class="block">Gets service reference list for the given query. |
| The query is executed inside this service context.</div> |
| <dl> |
| <dt><strong>Specified by:</strong></dt> |
| <dd><code><a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/BundleContext.html?is-external=true#getServiceReferences(java.lang.String, java.lang.String)" title="class or interface in org.osgi.framework">getServiceReferences</a></code> in interface <code><a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/BundleContext.html?is-external=true" title="class or interface in org.osgi.framework">BundleContext</a></code></dd> |
| <dt><span class="strong">Parameters:</span></dt><dd><code>clazz</code> - : the name of the required service interface</dd><dd><code>filter</code> - : LDAP filter to apply on service provider</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>: the array of consistent service reference or <code>null</code> |
| if no available providers</dd> |
| <dt><span class="strong">Throws:</span></dt> |
| <dd><code><a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/InvalidSyntaxException.html?is-external=true" title="class or interface in org.osgi.framework">InvalidSyntaxException</a></code> - if the LDAP filter is malformed</dd><dt><span class="strong">See Also:</span></dt><dd><a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/BundleContext.html?is-external=true#getServiceReferences(java.lang.String, java.lang.String)" title="class or interface in org.osgi.framework"><code>BundleContext.getServiceReferences(java.lang.String, java.lang.String)</code></a></dd></dl> |
| </li> |
| </ul> |
| <a name="registerService(java.lang.String[], java.lang.Object, java.util.Dictionary)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>registerService</h4> |
| <pre><a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/ServiceRegistration.html?is-external=true" title="class or interface in org.osgi.framework">ServiceRegistration</a> <a href="../../../../src-html/org/apache/felix/ipojo/ServiceContext.html#line.117">registerService</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[] clazzes, |
| <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> service, |
| <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Dictionary.html?is-external=true" title="class or interface in java.util">Dictionary</a><<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,?> properties)</pre> |
| <div class="block">Registers a service inside this service context. |
| This service is then isolated inside this context.</div> |
| <dl> |
| <dt><strong>Specified by:</strong></dt> |
| <dd><code><a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/BundleContext.html?is-external=true#registerService(java.lang.String[], java.lang.Object, java.util.Dictionary)" title="class or interface in org.osgi.framework">registerService</a></code> in interface <code><a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/BundleContext.html?is-external=true" title="class or interface in org.osgi.framework">BundleContext</a></code></dd> |
| <dt><span class="strong">Parameters:</span></dt><dd><code>clazzes</code> - the interfaces provided by the service.</dd><dd><code>service</code> - the service object.</dd><dd><code>properties</code> - service properties to publish</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>the service registration for this service publication. |
| This service registration is attached to the current service context, |
| and does not have any meaning in other contexts.</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../org/apache/felix/ipojo/ServiceContext.html#registerService(java.lang.String[], java.lang.Object, java.util.Dictionary)"><code>registerService(java.lang.String[], java.lang.Object, java.util.Dictionary)</code></a></dd></dl> |
| </li> |
| </ul> |
| <a name="registerService(java.lang.String, java.lang.Object, java.util.Dictionary)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>registerService</h4> |
| <pre><a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/ServiceRegistration.html?is-external=true" title="class or interface in org.osgi.framework">ServiceRegistration</a> <a href="../../../../src-html/org/apache/felix/ipojo/ServiceContext.html#line.130">registerService</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> clazz, |
| <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> service, |
| <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Dictionary.html?is-external=true" title="class or interface in java.util">Dictionary</a><<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,?> properties)</pre> |
| <div class="block">Registers a service inside this service context. |
| This service is then isolated inside this context.</div> |
| <dl> |
| <dt><strong>Specified by:</strong></dt> |
| <dd><code><a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/BundleContext.html?is-external=true#registerService(java.lang.String, java.lang.Object, java.util.Dictionary)" title="class or interface in org.osgi.framework">registerService</a></code> in interface <code><a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/BundleContext.html?is-external=true" title="class or interface in org.osgi.framework">BundleContext</a></code></dd> |
| <dt><span class="strong">Parameters:</span></dt><dd><code>clazz</code> - the interface provided by the service.</dd><dd><code>service</code> - the service object.</dd><dd><code>properties</code> - service properties to publish.</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>the service registration for this service publication. |
| This service registration is attached to the current service context, |
| and does not have any meaning in other contexts.</dd><dt><span class="strong">See Also:</span></dt><dd><a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/BundleContext.html?is-external=true#registerService(java.lang.String, java.lang.Object, java.util.Dictionary)" title="class or interface in org.osgi.framework"><code>BundleContext.registerService(java.lang.String, java.lang.Object, java.util.Dictionary)</code></a></dd></dl> |
| </li> |
| </ul> |
| <a name="removeServiceListener(org.osgi.framework.ServiceListener)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>removeServiceListener</h4> |
| <pre>void <a href="../../../../src-html/org/apache/felix/ipojo/ServiceContext.html#line.138">removeServiceListener</a>(<a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/ServiceListener.html?is-external=true" title="class or interface in org.osgi.framework">ServiceListener</a> listener)</pre> |
| <div class="block">Removes a service listener. |
| The listener must be registered inside this service context.</div> |
| <dl> |
| <dt><strong>Specified by:</strong></dt> |
| <dd><code><a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/BundleContext.html?is-external=true#removeServiceListener(org.osgi.framework.ServiceListener)" title="class or interface in org.osgi.framework">removeServiceListener</a></code> in interface <code><a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/BundleContext.html?is-external=true" title="class or interface in org.osgi.framework">BundleContext</a></code></dd> |
| <dt><span class="strong">Parameters:</span></dt><dd><code>listener</code> - the listener to remove</dd><dt><span class="strong">See Also:</span></dt><dd><a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/BundleContext.html?is-external=true#removeServiceListener(org.osgi.framework.ServiceListener)" title="class or interface in org.osgi.framework"><code>BundleContext.removeServiceListener(org.osgi.framework.ServiceListener)</code></a></dd></dl> |
| </li> |
| </ul> |
| <a name="ungetService(org.osgi.framework.ServiceReference)"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>ungetService</h4> |
| <pre>boolean <a href="../../../../src-html/org/apache/felix/ipojo/ServiceContext.html#line.147">ungetService</a>(<a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/ServiceReference.html?is-external=true" title="class or interface in org.osgi.framework">ServiceReference</a><?> reference)</pre> |
| <div class="block">Ungets the service reference. |
| The service reference must comes from this service context.</div> |
| <dl> |
| <dt><strong>Specified by:</strong></dt> |
| <dd><code><a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/BundleContext.html?is-external=true#ungetService(org.osgi.framework.ServiceReference)" title="class or interface in org.osgi.framework">ungetService</a></code> in interface <code><a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/BundleContext.html?is-external=true" title="class or interface in org.osgi.framework">BundleContext</a></code></dd> |
| <dt><span class="strong">Parameters:</span></dt><dd><code>reference</code> - the reference to unget</dd> |
| <dt><span class="strong">Returns:</span></dt><dd><code>true</code> if you are the last user of the reference.</dd><dt><span class="strong">See Also:</span></dt><dd><a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/BundleContext.html?is-external=true#ungetService(org.osgi.framework.ServiceReference)" title="class or interface in org.osgi.framework"><code>BundleContext.ungetService(org.osgi.framework.ServiceReference)</code></a></dd></dl> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| </div> |
| <!-- ========= END OF CLASS DATA ========= --> |
| <!-- ======= START OF BOTTOM NAVBAR ====== --> |
| <div class="bottomNav"><a name="navbar_bottom"> |
| <!-- --> |
| </a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../overview-summary.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="class-use/ServiceContext.html">Use</a></li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../../index-all.html">Index</a></li> |
| </ul> |
| </div> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li><a href="../../../../org/apache/felix/ipojo/PrimitiveTypeDescription.InheritanceInspector.html" title="class in org.apache.felix.ipojo"><span class="strong">Prev Class</span></a></li> |
| <li><a href="../../../../org/apache/felix/ipojo/UnacceptableConfiguration.html" title="class in org.apache.felix.ipojo"><span class="strong">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../index.html?org/apache/felix/ipojo/ServiceContext.html" target="_top">Frames</a></li> |
| <li><a href="ServiceContext.html" target="_top">No Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_bottom"> |
| <li><a href="../../../../allclasses-noframe.html">All Classes</a></li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_bottom"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li>Nested | </li> |
| <li>Field | </li> |
| <li>Constr | </li> |
| <li><a href="#method_summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li>Field | </li> |
| <li>Constr | </li> |
| <li><a href="#method_detail">Method</a></li> |
| </ul> |
| </div> |
| <a name="skip-navbar_bottom"> |
| <!-- --> |
| </a></div> |
| <!-- ======== END OF BOTTOM NAVBAR ======= --> |
| <p class="legalCopy"><small>Copyright © 2014. All rights reserved.</small></p> |
| </body> |
| </html> |