blob: 6f11dee3d8482ed5f13860a0a991ff7259b653c5 [file] [log] [blame]
<!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 (1.8.0) on Wed Dec 24 15:58:25 CET 2014 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>ServiceContext (Apache Felix iPOJO ~ JavaDoc 1.12.1 API)</title>
<meta name="date" content="2014-12-24">
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="ServiceContext (Apache Felix iPOJO ~ JavaDoc 1.12.1 API)";
}
}
catch(err) {
}
//-->
var methods = {"i0":6,"i1":6,"i2":6,"i3":6,"i4":6,"i5":6,"i6":6,"i7":6,"i8":6,"i9":6};
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],4:["t3","Abstract Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<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="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../org/apache/felix/ipojo/UnacceptableConfiguration.html" title="class in org.apache.felix.ipojo"><span class="typeNameLink">Next&nbsp;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&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../allclasses-noframe.html">All&nbsp;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:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</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 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></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 <code>BundleContext</code> methods.
(methods implying interactions with the service registry).
So, refer to this class for further information.</div>
<dl>
<dt><span class="simpleTagLabel">Author:</span></dt>
<dd><a href="mailto:dev@felix.apache.org">Felix Project Team</a></dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><code>BundleContext</code></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="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t3" class="tableTab"><span><a href="javascript:show(4);">Abstract Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/felix/ipojo/ServiceContext.html#addServiceListener-ServiceListener-">addServiceListener</a></span>(ServiceListener&nbsp;listener)</code>
<div class="block">Adds a service listener.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/felix/ipojo/ServiceContext.html#addServiceListener-ServiceListener-java.lang.String-">addServiceListener</a></span>(ServiceListener&nbsp;listener,
<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;filter)</code>
<div class="block">Adds a service listener.</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code>ServiceReference[]</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/felix/ipojo/ServiceContext.html#getAllServiceReferences-java.lang.String-java.lang.String-">getAllServiceReferences</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;clazz,
<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;filter)</code>
<div class="block">Gets the service references matching with the given query.</div>
</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code>&lt;S&gt;&nbsp;S</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/felix/ipojo/ServiceContext.html#getService--">getService</a></span>(&lt;any&gt;&nbsp;reference)</code>
<div class="block">Gets a service object.</div>
</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code>ServiceReference</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/felix/ipojo/ServiceContext.html#getServiceReference-java.lang.String-">getServiceReference</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;clazz)</code>
<div class="block">Gets a service reference for the given interface.</div>
</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code>ServiceReference[]</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/felix/ipojo/ServiceContext.html#getServiceReferences-java.lang.String-java.lang.String-">getServiceReferences</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;clazz,
<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;filter)</code>
<div class="block">Gets service reference list for the given query.</div>
</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code>ServiceRegistration</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/felix/ipojo/ServiceContext.html#registerService-java.lang.String:A-java.lang.Object-java.util.Dictionary-">registerService</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[]&nbsp;clazzes,
<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;service,
<a href="http://docs.oracle.com/javase/8/docs/api/java/util/Dictionary.html?is-external=true" title="class or interface in java.util">Dictionary</a>&lt;<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,?&gt;&nbsp;properties)</code>
<div class="block">Registers a service inside this service context.</div>
</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code>ServiceRegistration</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/felix/ipojo/ServiceContext.html#registerService-java.lang.String-java.lang.Object-java.util.Dictionary-">registerService</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;clazz,
<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;service,
<a href="http://docs.oracle.com/javase/8/docs/api/java/util/Dictionary.html?is-external=true" title="class or interface in java.util">Dictionary</a>&lt;<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,?&gt;&nbsp;properties)</code>
<div class="block">Registers a service inside this service context.</div>
</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/felix/ipojo/ServiceContext.html#removeServiceListener-ServiceListener-">removeServiceListener</a></span>(ServiceListener&nbsp;listener)</code>
<div class="block">Removes a service listener.</div>
</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/felix/ipojo/ServiceContext.html#ungetService--">ungetService</a></span>(&lt;any&gt;&nbsp;reference)</code>
<div class="block">Ungets the service reference.</div>
</td>
</tr>
</table>
</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-ServiceListener-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>addServiceListener</h4>
<pre>void&nbsp;<a href="../../../../src-html/org/apache/felix/ipojo/ServiceContext.html#line.51">addServiceListener</a>(ServiceListener&nbsp;listener,
<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;filter)
throws InvalidSyntaxException</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><span class="paramLabel">Parameters:</span></dt>
<dd><code>listener</code> - the service listener to add.</dd>
<dd><code>filter</code> - the LDAP filter</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>InvalidSyntaxException</code> - if the LDAP filter is malformed</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><code>org.osgi.framework.BundleContext#addServiceListener(org.osgi.framework.ServiceListener, java.lang.String)</code></dd>
</dl>
</li>
</ul>
<a name="addServiceListener-ServiceListener-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>addServiceListener</h4>
<pre>void&nbsp;<a href="../../../../src-html/org/apache/felix/ipojo/ServiceContext.html#line.60">addServiceListener</a>(ServiceListener&nbsp;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><span class="paramLabel">Parameters:</span></dt>
<dd><code>listener</code> - the service listener to add.</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><code>org.osgi.framework.BundleContext#addServiceListener(org.osgi.framework.ServiceListener)</code></dd>
</dl>
</li>
</ul>
<a name="getAllServiceReferences-java.lang.String-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getAllServiceReferences</h4>
<pre>ServiceReference[]&nbsp;<a href="../../../../src-html/org/apache/felix/ipojo/ServiceContext.html#line.72">getAllServiceReferences</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;clazz,
<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;filter)
throws InvalidSyntaxException</pre>
<div class="block">Gets the service references matching with the given query.
The query is executed inside this service context.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>clazz</code> - the required interface</dd>
<dd><code>filter</code> - a LDAP filter</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the array of available service references or <code>null</code>
if no providers are available.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>InvalidSyntaxException</code> - if the LDAP filter is malformed</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><code>org.osgi.framework.BundleContext#getAllServiceReferences(java.lang.String, java.lang.String)</code></dd>
</dl>
</li>
</ul>
<a name="getService--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getService</h4>
<pre>&lt;S&gt;&nbsp;S&nbsp;<a href="../../../../src-html/org/apache/felix/ipojo/ServiceContext.html#line.82">getService</a>(&lt;any&gt;&nbsp;reference)</pre>
<div class="block">Gets a service object.
The given service reference must comes from this
service context.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>reference</code> - the required service reference</dd>
<dt><span class="returnLabel">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="seeLabel">See Also:</span></dt>
<dd><code>org.osgi.framework.BundleContext#getService(org.osgi.framework.ServiceReference)</code></dd>
</dl>
</li>
</ul>
<a name="getServiceReference-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getServiceReference</h4>
<pre>ServiceReference&nbsp;<a href="../../../../src-html/org/apache/felix/ipojo/ServiceContext.html#line.92">getServiceReference</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;clazz)</pre>
<div class="block">Gets a service reference for the given interface.
The query is executed inside this service context.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>clazz</code> - the required interface name</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>a service reference on a available provider or
<code>null</code> if no providers are available</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><code>org.osgi.framework.BundleContext#getServiceReference(java.lang.String)</code></dd>
</dl>
</li>
</ul>
<a name="getServiceReferences-java.lang.String-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getServiceReferences</h4>
<pre>ServiceReference[]&nbsp;<a href="../../../../src-html/org/apache/felix/ipojo/ServiceContext.html#line.104">getServiceReferences</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;clazz,
<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;filter)
throws InvalidSyntaxException</pre>
<div class="block">Gets service reference list for the given query.
The query is executed inside this service context.</div>
<dl>
<dt><span class="paramLabel">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="returnLabel">Returns:</span></dt>
<dd>: the array of consistent service reference or <code>null</code>
if no available providers</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>InvalidSyntaxException</code> - if the LDAP filter is malformed</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><code>org.osgi.framework.BundleContext#getServiceReferences(java.lang.String, java.lang.String)</code></dd>
</dl>
</li>
</ul>
<a name="registerService-java.lang.String:A-java.lang.Object-java.util.Dictionary-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>registerService</h4>
<pre>ServiceRegistration&nbsp;<a href="../../../../src-html/org/apache/felix/ipojo/ServiceContext.html#line.117">registerService</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[]&nbsp;clazzes,
<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;service,
<a href="http://docs.oracle.com/javase/8/docs/api/java/util/Dictionary.html?is-external=true" title="class or interface in java.util">Dictionary</a>&lt;<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,?&gt;&nbsp;properties)</pre>
<div class="block">Registers a service inside this service context.
This service is then isolated inside this context.</div>
<dl>
<dt><span class="paramLabel">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="returnLabel">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="seeLabel">See Also:</span></dt>
<dd><a href="../../../../org/apache/felix/ipojo/ServiceContext.html#registerService-java.lang.String:A-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>ServiceRegistration&nbsp;<a href="../../../../src-html/org/apache/felix/ipojo/ServiceContext.html#line.130">registerService</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;clazz,
<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;service,
<a href="http://docs.oracle.com/javase/8/docs/api/java/util/Dictionary.html?is-external=true" title="class or interface in java.util">Dictionary</a>&lt;<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,?&gt;&nbsp;properties)</pre>
<div class="block">Registers a service inside this service context.
This service is then isolated inside this context.</div>
<dl>
<dt><span class="paramLabel">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="returnLabel">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="seeLabel">See Also:</span></dt>
<dd><code>org.osgi.framework.BundleContext#registerService(java.lang.String, java.lang.Object, java.util.Dictionary)</code></dd>
</dl>
</li>
</ul>
<a name="removeServiceListener-ServiceListener-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>removeServiceListener</h4>
<pre>void&nbsp;<a href="../../../../src-html/org/apache/felix/ipojo/ServiceContext.html#line.138">removeServiceListener</a>(ServiceListener&nbsp;listener)</pre>
<div class="block">Removes a service listener.
The listener must be registered inside this service context.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>listener</code> - the listener to remove</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><code>org.osgi.framework.BundleContext#removeServiceListener(org.osgi.framework.ServiceListener)</code></dd>
</dl>
</li>
</ul>
<a name="ungetService--">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>ungetService</h4>
<pre>boolean&nbsp;<a href="../../../../src-html/org/apache/felix/ipojo/ServiceContext.html#line.147">ungetService</a>(&lt;any&gt;&nbsp;reference)</pre>
<div class="block">Ungets the service reference.
The service reference must comes from this service context.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>reference</code> - the reference to unget</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd><code>true</code> if you are the last user of the reference.</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><code>org.osgi.framework.BundleContext#ungetService(org.osgi.framework.ServiceReference)</code></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>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<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="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../org/apache/felix/ipojo/UnacceptableConfiguration.html" title="class in org.apache.felix.ipojo"><span class="typeNameLink">Next&nbsp;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&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../allclasses-noframe.html">All&nbsp;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:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</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 &#169; 2014. All rights reserved.</small></p>
</body>
</html>