blob: 8ceb2d66d4d36082ed10d8081a0960ed2a108c0e [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 (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>IPojoContext (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="IPojoContext (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/IPojoContext.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/InstanceStateListener.html" title="interface in org.apache.felix.ipojo"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../../org/apache/felix/ipojo/IPojoFactory.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/IPojoContext.html" target="_top">Frames</a></li>
<li><a href="IPojoContext.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:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#field_summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field_detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor_detail">Constr</a>&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="Class IPojoContext" class="title">Class IPojoContext</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li>
<li>
<ul class="inheritance">
<li>org.apache.felix.ipojo.IPojoContext</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd><a href="../../../../org/apache/felix/ipojo/ServiceContext.html" title="interface in org.apache.felix.ipojo">ServiceContext</a>, <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>
<hr>
<br>
<pre>public class <a href="../../../../src-html/org/apache/felix/ipojo/IPojoContext.html#line.49">IPojoContext</a>
extends <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>
implements <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="../../../../org/apache/felix/ipojo/ServiceContext.html" title="interface in org.apache.felix.ipojo">ServiceContext</a></pre>
<div class="block">The iPOJO Context is a BundleContext implementation allowing the separation
between Bundle context and Service (Bundle) Context.
This is used inside composition to differentiate the classloading context (i.e.
Bundle) and the service registry access.
This class delegates calls to the good internal context (either the BundleContext
or the ServiceContext) according to the method. If the instance does not have a valid
service context, the bundle context is always used.</div>
<dl><dt><span class="strong">Author:</span></dt>
<dd><a href="mailto:dev@felix.apache.org">Felix Project Team</a></dd></dl>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field_summary">
<!-- -->
</a>
<h3>Field Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
<caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Field and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>private <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></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/felix/ipojo/IPojoContext.html#m_bundleContext">m_bundleContext</a></strong></code>
<div class="block">The bundleContext used to access bundle methods.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>private <a href="../../../../org/apache/felix/ipojo/ServiceContext.html" title="interface in org.apache.felix.ipojo">ServiceContext</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/felix/ipojo/IPojoContext.html#m_serviceContext">m_serviceContext</a></strong></code>
<div class="block">The service context used to access to the service registry.</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_summary">
<!-- -->
</a>
<h3>Constructor Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../../org/apache/felix/ipojo/IPojoContext.html#IPojoContext(org.osgi.framework.BundleContext)">IPojoContext</a></strong>(<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>&nbsp;context)</code>
<div class="block">Creates an iPOJO Context.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><strong><a href="../../../../org/apache/felix/ipojo/IPojoContext.html#IPojoContext(org.osgi.framework.BundleContext, org.apache.felix.ipojo.ServiceContext)">IPojoContext</a></strong>(<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>&nbsp;bundleContext,
<a href="../../../../org/apache/felix/ipojo/ServiceContext.html" title="interface in org.apache.felix.ipojo">ServiceContext</a>&nbsp;serviceContext)</code>
<div class="block">Creates an iPOJO Context.</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- ========== 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">&nbsp;</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/IPojoContext.html#addBundleListener(org.osgi.framework.BundleListener)">addBundleListener</a></strong>(<a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/BundleListener.html?is-external=true" title="class or interface in org.osgi.framework">BundleListener</a>&nbsp;listener)</code>
<div class="block">Adds a bundle 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/IPojoContext.html#addFrameworkListener(org.osgi.framework.FrameworkListener)">addFrameworkListener</a></strong>(<a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/FrameworkListener.html?is-external=true" title="class or interface in org.osgi.framework">FrameworkListener</a>&nbsp;listener)</code>
<div class="block">Adds a framework listener.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/felix/ipojo/IPojoContext.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>&nbsp;listener)</code>
<div class="block">Add 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/IPojoContext.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>&nbsp;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>&nbsp;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/Filter.html?is-external=true" title="class or interface in org.osgi.framework">Filter</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/felix/ipojo/IPojoContext.html#createFilter(java.lang.String)">createFilter</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>&nbsp;filter)</code>
<div class="block">Creates a filter objects.</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/IPojoContext.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>&nbsp;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>&nbsp;filter)</code>
<div class="block">Gets the service references matching with 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/Bundle.html?is-external=true" title="class or interface in org.osgi.framework">Bundle</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/felix/ipojo/IPojoContext.html#getBundle()">getBundle</a></strong>()</code>
<div class="block">Gets the current bundle object.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/Bundle.html?is-external=true" title="class or interface in org.osgi.framework">Bundle</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/felix/ipojo/IPojoContext.html#getBundle(long)">getBundle</a></strong>(long&nbsp;bundleId)</code>
<div class="block">Gets the bundle object with the given id.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/Bundle.html?is-external=true" title="class or interface in org.osgi.framework">Bundle</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/felix/ipojo/IPojoContext.html#getBundle(java.lang.String)">getBundle</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>&nbsp;s)</code>
<div class="block">Gets a bundle by symbolic name</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/Bundle.html?is-external=true" title="class or interface in org.osgi.framework">Bundle</a>[]</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/felix/ipojo/IPojoContext.html#getBundles()">getBundles</a></strong>()</code>
<div class="block">Gets installed bundles.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/felix/ipojo/IPojoContext.html#getDataFile(java.lang.String)">getDataFile</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>&nbsp;filename)</code>
<div class="block">Gets a data file.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><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></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/felix/ipojo/IPojoContext.html#getGlobalContext()">getGlobalContext</a></strong>()</code>
<div class="block">Gets the global context, i.e.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><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></code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/felix/ipojo/IPojoContext.html#getProperty(java.lang.String)">getProperty</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>&nbsp;key)</code>
<div class="block">Gets a property value.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>&lt;S&gt;&nbsp;S</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/felix/ipojo/IPojoContext.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>&lt;S&gt;&nbsp;ref)</code>
<div class="block">Gets a service object.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../org/apache/felix/ipojo/ServiceContext.html" title="interface in org.apache.felix.ipojo">ServiceContext</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/felix/ipojo/IPojoContext.html#getServiceContext()">getServiceContext</a></strong>()</code>
<div class="block">Gets the service context, i.e.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>&lt;S&gt;&nbsp;<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>&lt;S&gt;</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/felix/ipojo/IPojoContext.html#getServiceReference(java.lang.Class)">getServiceReference</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a>&lt;S&gt;&nbsp;sClass)</code>
<div class="block">Gets a service reference for the given interface.</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/IPojoContext.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>&nbsp;clazz)</code>
<div class="block">Gets a service reference for the given interface.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>&lt;S&gt;&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a>&lt;<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>&lt;S&gt;&gt;</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/felix/ipojo/IPojoContext.html#getServiceReferences(java.lang.Class, java.lang.String)">getServiceReferences</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a>&lt;S&gt;&nbsp;sClass,
<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>&nbsp;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/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/IPojoContext.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>&nbsp;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>&nbsp;filter)</code>
<div class="block">Gets service reference list for the given query.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/Bundle.html?is-external=true" title="class or interface in org.osgi.framework">Bundle</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/felix/ipojo/IPojoContext.html#installBundle(java.lang.String)">installBundle</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>&nbsp;location)</code>
<div class="block">Installs a bundle.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/Bundle.html?is-external=true" title="class or interface in org.osgi.framework">Bundle</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/felix/ipojo/IPojoContext.html#installBundle(java.lang.String, java.io.InputStream)">installBundle</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>&nbsp;location,
<a href="http://docs.oracle.com/javase/7/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a>&nbsp;input)</code>
<div class="block">Installs a bundle.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>private <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></code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/felix/ipojo/IPojoContext.html#match(java.lang.String)">match</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>&nbsp;filter)</code>
<div class="block">This method checks if the filter matches with the iPOJO
filter format: <code>(OBJECTCLASS=$ITF)</code>.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>&lt;S&gt;&nbsp;<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>&lt;S&gt;</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/felix/ipojo/IPojoContext.html#registerService(java.lang.Class, S, java.util.Dictionary)">registerService</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a>&lt;S&gt;&nbsp;sClass,
S&nbsp;s,
<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>&lt;<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>,?&gt;&nbsp;stringDictionary)</code>
<div class="block">Registers a service</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/IPojoContext.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>[]&nbsp;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>&nbsp;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>&nbsp;properties)</code>
<div class="block">Registers a service.</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/IPojoContext.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>&nbsp;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>&nbsp;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>&nbsp;properties)</code>
<div class="block">Registers a service.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/felix/ipojo/IPojoContext.html#removeBundleListener(org.osgi.framework.BundleListener)">removeBundleListener</a></strong>(<a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/BundleListener.html?is-external=true" title="class or interface in org.osgi.framework">BundleListener</a>&nbsp;listener)</code>
<div class="block">Removes a bundle listener.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/felix/ipojo/IPojoContext.html#removeFrameworkListener(org.osgi.framework.FrameworkListener)">removeFrameworkListener</a></strong>(<a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/FrameworkListener.html?is-external=true" title="class or interface in org.osgi.framework">FrameworkListener</a>&nbsp;listener)</code>
<div class="block">Removes a framework 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/IPojoContext.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>&nbsp;listener)</code>
<div class="block">Removes a service listener.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/felix/ipojo/IPojoContext.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>&nbsp;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_java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.<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></h3>
<code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</a></code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ FIELD DETAIL =========== -->
<ul class="blockList">
<li class="blockList"><a name="field_detail">
<!-- -->
</a>
<h3>Field Detail</h3>
<a name="m_bundleContext">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>m_bundleContext</h4>
<pre>private&nbsp;<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="../../../../src-html/org/apache/felix/ipojo/IPojoContext.html#line.54">m_bundleContext</a></pre>
<div class="block">The bundleContext used to access bundle methods.</div>
</li>
</ul>
<a name="m_serviceContext">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>m_serviceContext</h4>
<pre>private&nbsp;<a href="../../../../org/apache/felix/ipojo/ServiceContext.html" title="interface in org.apache.felix.ipojo">ServiceContext</a> <a href="../../../../src-html/org/apache/felix/ipojo/IPojoContext.html#line.59">m_serviceContext</a></pre>
<div class="block">The service context used to access to the service registry.</div>
</li>
</ul>
</li>
</ul>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="IPojoContext(org.osgi.framework.BundleContext)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>IPojoContext</h4>
<pre>public&nbsp;<a href="../../../../src-html/org/apache/felix/ipojo/IPojoContext.html#line.68">IPojoContext</a>(<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>&nbsp;context)</pre>
<div class="block">Creates an iPOJO Context.
No service context is specified.
This constructor is used when the
instance lives in the global context.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>context</code> - the bundle context</dd></dl>
</li>
</ul>
<a name="IPojoContext(org.osgi.framework.BundleContext, org.apache.felix.ipojo.ServiceContext)">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>IPojoContext</h4>
<pre>public&nbsp;<a href="../../../../src-html/org/apache/felix/ipojo/IPojoContext.html#line.85">IPojoContext</a>(<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>&nbsp;bundleContext,
<a href="../../../../org/apache/felix/ipojo/ServiceContext.html" title="interface in org.apache.felix.ipojo">ServiceContext</a>&nbsp;serviceContext)</pre>
<div class="block">Creates an iPOJO Context.
A service context is used to refer to the
service registry. The service context will be
used for all service accesses.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>bundleContext</code> - the bundle context</dd><dd><code>serviceContext</code> - the service context</dd></dl>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method_detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="addBundleListener(org.osgi.framework.BundleListener)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>addBundleListener</h4>
<pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/apache/felix/ipojo/IPojoContext.html#line.95">addBundleListener</a>(<a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/BundleListener.html?is-external=true" title="class or interface in org.osgi.framework">BundleListener</a>&nbsp;listener)</pre>
<div class="block">Adds a bundle listener.</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#addBundleListener(org.osgi.framework.BundleListener)" title="class or interface in org.osgi.framework">addBundleListener</a></code>&nbsp;in interface&nbsp;<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 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#addBundleListener(org.osgi.framework.BundleListener)" title="class or interface in org.osgi.framework"><code>BundleContext.addBundleListener(org.osgi.framework.BundleListener)</code></a></dd></dl>
</li>
</ul>
<a name="addFrameworkListener(org.osgi.framework.FrameworkListener)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>addFrameworkListener</h4>
<pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/apache/felix/ipojo/IPojoContext.html#line.104">addFrameworkListener</a>(<a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/FrameworkListener.html?is-external=true" title="class or interface in org.osgi.framework">FrameworkListener</a>&nbsp;listener)</pre>
<div class="block">Adds a framework listener.</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#addFrameworkListener(org.osgi.framework.FrameworkListener)" title="class or interface in org.osgi.framework">addFrameworkListener</a></code>&nbsp;in interface&nbsp;<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 object 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#addFrameworkListener(org.osgi.framework.FrameworkListener)" title="class or interface in org.osgi.framework"><code>BundleContext.addFrameworkListener(org.osgi.framework.FrameworkListener)</code></a></dd></dl>
</li>
</ul>
<a name="addServiceListener(org.osgi.framework.ServiceListener, java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>addServiceListener</h4>
<pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/apache/felix/ipojo/IPojoContext.html#line.121">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>&nbsp;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>&nbsp;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.
This methods registers the listener on the service context
if it specified. Otherwise, if the internal dispatcher is enabled,
it registers the listener inside the internal dispatcher (if
the filter match against the iPOJO Filter format
<a href="../../../../org/apache/felix/ipojo/IPojoContext.html#match(java.lang.String)"><code>match(String)</code></a>). Finally, if the internal
dispatcher is disabled, it uses the "regular" bundle context.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../../org/apache/felix/ipojo/ServiceContext.html#addServiceListener(org.osgi.framework.ServiceListener, java.lang.String)">addServiceListener</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../org/apache/felix/ipojo/ServiceContext.html" title="interface in org.apache.felix.ipojo">ServiceContext</a></code></dd>
<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>&nbsp;in interface&nbsp;<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 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>public&nbsp;void&nbsp;<a href="../../../../src-html/org/apache/felix/ipojo/IPojoContext.html#line.146">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>&nbsp;listener)</pre>
<div class="block">Add a service listener.
This methods registers the listener on the service context
if it specified. Otherwise, it uses the "regular" bundle context.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../../org/apache/felix/ipojo/ServiceContext.html#addServiceListener(org.osgi.framework.ServiceListener)">addServiceListener</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../org/apache/felix/ipojo/ServiceContext.html" title="interface in org.apache.felix.ipojo">ServiceContext</a></code></dd>
<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>&nbsp;in interface&nbsp;<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="match(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>match</h4>
<pre>private&nbsp;<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>&nbsp;<a href="../../../../src-html/org/apache/felix/ipojo/IPojoContext.html#line.162">match</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>&nbsp;filter)</pre>
<div class="block">This method checks if the filter matches with the iPOJO
filter format: <code>(OBJECTCLASS=$ITF)</code>. It tries
to extract the required interface (<code>$ITF</code>).</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>filter</code> - the filter to analyze</dd>
<dt><span class="strong">Returns:</span></dt><dd>the required interface or <code>null</code>
if the filter doesn't match with the iPOJO format.</dd></dl>
</li>
</ul>
<a name="createFilter(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>createFilter</h4>
<pre>public&nbsp;<a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/Filter.html?is-external=true" title="class or interface in org.osgi.framework">Filter</a>&nbsp;<a href="../../../../src-html/org/apache/felix/ipojo/IPojoContext.html#line.180">createFilter</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>&nbsp;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">Creates a filter objects.
This method always uses the bundle 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#createFilter(java.lang.String)" title="class or interface in org.osgi.framework">createFilter</a></code>&nbsp;in interface&nbsp;<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>filter</code> - the string form of the LDAP filter to create</dd>
<dt><span class="strong">Returns:</span></dt><dd>the filter object.</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 given 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#createFilter(java.lang.String)" title="class or interface in org.osgi.framework"><code>BundleContext.createFilter(java.lang.String)</code></a></dd></dl>
</li>
</ul>
<a name="getBundle(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getBundle</h4>
<pre>public&nbsp;<a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/Bundle.html?is-external=true" title="class or interface in org.osgi.framework">Bundle</a>&nbsp;<a href="../../../../src-html/org/apache/felix/ipojo/IPojoContext.html#line.189">getBundle</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>&nbsp;s)</pre>
<div class="block">Gets a bundle by symbolic name</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#getBundle(java.lang.String)" title="class or interface in org.osgi.framework">getBundle</a></code>&nbsp;in interface&nbsp;<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>s</code> - the name</dd>
<dt><span class="strong">Returns:</span></dt><dd>the matching bundle or <code>null</code> if not found</dd></dl>
</li>
</ul>
<a name="getAllServiceReferences(java.lang.String, java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getAllServiceReferences</h4>
<pre>public&nbsp;<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>[]&nbsp;<a href="../../../../src-html/org/apache/felix/ipojo/IPojoContext.html#line.203">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>&nbsp;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>&nbsp;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.
Uses the service context if specified, used the bundle context
otherwise.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../../org/apache/felix/ipojo/ServiceContext.html#getAllServiceReferences(java.lang.String, java.lang.String)">getAllServiceReferences</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../org/apache/felix/ipojo/ServiceContext.html" title="interface in org.apache.felix.ipojo">ServiceContext</a></code></dd>
<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>&nbsp;in interface&nbsp;<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> - the LDAP filter</dd>
<dt><span class="strong">Returns:</span></dt><dd>the array of available service references</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="getBundle()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getBundle</h4>
<pre>public&nbsp;<a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/Bundle.html?is-external=true" title="class or interface in org.osgi.framework">Bundle</a>&nbsp;<a href="../../../../src-html/org/apache/felix/ipojo/IPojoContext.html#line.217">getBundle</a>()</pre>
<div class="block">Gets the current bundle object.</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#getBundle()" title="class or interface in org.osgi.framework">getBundle</a></code>&nbsp;in interface&nbsp;<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><strong>Specified by:</strong></dt>
<dd><code><a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/BundleReference.html?is-external=true#getBundle()" title="class or interface in org.osgi.framework">getBundle</a></code>&nbsp;in interface&nbsp;<code><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></code></dd>
<dt><span class="strong">Returns:</span></dt><dd>the bundle declaring the component type of the instance
using the current IPojoContext.</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#getBundle()" title="class or interface in org.osgi.framework"><code>BundleContext.getBundle()</code></a></dd></dl>
</li>
</ul>
<a name="getBundle(long)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getBundle</h4>
<pre>public&nbsp;<a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/Bundle.html?is-external=true" title="class or interface in org.osgi.framework">Bundle</a>&nbsp;<a href="../../../../src-html/org/apache/felix/ipojo/IPojoContext.html#line.227">getBundle</a>(long&nbsp;bundleId)</pre>
<div class="block">Gets the bundle object with the given id.</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#getBundle(long)" title="class or interface in org.osgi.framework">getBundle</a></code>&nbsp;in interface&nbsp;<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>bundleId</code> - the bundle id</dd>
<dt><span class="strong">Returns:</span></dt><dd>the bundle object</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#getBundle(long)" title="class or interface in org.osgi.framework"><code>BundleContext.getBundle(long)</code></a></dd></dl>
</li>
</ul>
<a name="getBundles()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getBundles</h4>
<pre>public&nbsp;<a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/Bundle.html?is-external=true" title="class or interface in org.osgi.framework">Bundle</a>[]&nbsp;<a href="../../../../src-html/org/apache/felix/ipojo/IPojoContext.html#line.236">getBundles</a>()</pre>
<div class="block">Gets installed bundles.</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#getBundles()" title="class or interface in org.osgi.framework">getBundles</a></code>&nbsp;in interface&nbsp;<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">Returns:</span></dt><dd>the list of installed bundles</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#getBundles()" title="class or interface in org.osgi.framework"><code>BundleContext.getBundles()</code></a></dd></dl>
</li>
</ul>
<a name="getDataFile(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getDataFile</h4>
<pre>public&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</a>&nbsp;<a href="../../../../src-html/org/apache/felix/ipojo/IPojoContext.html#line.246">getDataFile</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>&nbsp;filename)</pre>
<div class="block">Gets a data file.</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#getDataFile(java.lang.String)" title="class or interface in org.osgi.framework">getDataFile</a></code>&nbsp;in interface&nbsp;<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>filename</code> - the file name.</dd>
<dt><span class="strong">Returns:</span></dt><dd>the File object</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#getDataFile(java.lang.String)" title="class or interface in org.osgi.framework"><code>BundleContext.getDataFile(java.lang.String)</code></a></dd></dl>
</li>
</ul>
<a name="getProperty(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getProperty</h4>
<pre>public&nbsp;<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>&nbsp;<a href="../../../../src-html/org/apache/felix/ipojo/IPojoContext.html#line.257">getProperty</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>&nbsp;key)</pre>
<div class="block">Gets a property value.</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#getProperty(java.lang.String)" title="class or interface in org.osgi.framework">getProperty</a></code>&nbsp;in interface&nbsp;<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>key</code> - the key of the asked property</dd>
<dt><span class="strong">Returns:</span></dt><dd>the property value (object) or <code>null</code> if no
property are associated with the given key</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#getProperty(java.lang.String)" title="class or interface in org.osgi.framework"><code>BundleContext.getProperty(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>public&nbsp;&lt;S&gt;&nbsp;S&nbsp;<a href="../../../../src-html/org/apache/felix/ipojo/IPojoContext.html#line.274">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>&lt;S&gt;&nbsp;ref)</pre>
<div class="block">Gets a service object.
The given service reference must come from the same context than
where the service is get.
This method uses the service context if specified, the bundle
context otherwise.
This method may throw <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang"><code>IllegalStateException</code></a> if the used bundle
context is no more valid (because we're leaving).</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../../org/apache/felix/ipojo/ServiceContext.html#getService(org.osgi.framework.ServiceReference)">getService</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../org/apache/felix/ipojo/ServiceContext.html" title="interface in org.apache.felix.ipojo">ServiceContext</a></code></dd>
<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>&nbsp;in interface&nbsp;<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>ref</code> - the required service reference</dd>
<dt><span class="strong">Returns:</span></dt><dd>the service object or <code>null</code> 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>public&nbsp;<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>&nbsp;<a href="../../../../src-html/org/apache/felix/ipojo/IPojoContext.html#line.295">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>&nbsp;clazz)</pre>
<div class="block">Gets a service reference for the given interface.
This method uses the service context if specified, the bundle
context otherwise.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../../org/apache/felix/ipojo/ServiceContext.html#getServiceReference(java.lang.String)">getServiceReference</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../org/apache/felix/ipojo/ServiceContext.html" title="interface in org.apache.felix.ipojo">ServiceContext</a></code></dd>
<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>&nbsp;in interface&nbsp;<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 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="getServiceReference(java.lang.Class)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getServiceReference</h4>
<pre>public&nbsp;&lt;S&gt;&nbsp;<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>&lt;S&gt;&nbsp;<a href="../../../../src-html/org/apache/felix/ipojo/IPojoContext.html#line.313">getServiceReference</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a>&lt;S&gt;&nbsp;sClass)</pre>
<div class="block">Gets a service reference for the given interface.
This method uses the service context if specified, the bundle
context otherwise.</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.Class)" title="class or interface in org.osgi.framework">getServiceReference</a></code>&nbsp;in interface&nbsp;<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">Type Parameters:</span></dt><dd><code>S</code> - the service class</dd><dt><span class="strong">Parameters:</span></dt><dd><code>sClass</code> - the required interface class</dd>
<dt><span class="strong">Returns:</span></dt><dd>a service reference on a available provider or <code>null</code>
if no providers 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.Class, java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getServiceReferences</h4>
<pre>public&nbsp;&lt;S&gt;&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a>&lt;<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>&lt;S&gt;&gt;&nbsp;<a href="../../../../src-html/org/apache/felix/ipojo/IPojoContext.html#line.332">getServiceReferences</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a>&lt;S&gt;&nbsp;sClass,
<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>&nbsp;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.
This method uses the service context if specified, the bundle
context otherwise.</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.Class, java.lang.String)" title="class or interface in org.osgi.framework">getServiceReferences</a></code>&nbsp;in interface&nbsp;<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">Type Parameters:</span></dt><dd><code>S</code> - the service class</dd><dt><span class="strong">Parameters:</span></dt><dd><code>sClass</code> - the name of the required service interface</dd><dd><code>filter</code> - the 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></dl>
</li>
</ul>
<a name="getServiceReferences(java.lang.String, java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getServiceReferences</h4>
<pre>public&nbsp;<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>[]&nbsp;<a href="../../../../src-html/org/apache/felix/ipojo/IPojoContext.html#line.351">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>&nbsp;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>&nbsp;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.
This method uses the service context if specified, the bundle
context otherwise.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../../org/apache/felix/ipojo/ServiceContext.html#getServiceReferences(java.lang.String, java.lang.String)">getServiceReferences</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../org/apache/felix/ipojo/ServiceContext.html" title="interface in org.apache.felix.ipojo">ServiceContext</a></code></dd>
<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>&nbsp;in interface&nbsp;<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> - the 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="installBundle(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>installBundle</h4>
<pre>public&nbsp;<a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/Bundle.html?is-external=true" title="class or interface in org.osgi.framework">Bundle</a>&nbsp;<a href="../../../../src-html/org/apache/felix/ipojo/IPojoContext.html#line.366">installBundle</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>&nbsp;location)
throws <a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/BundleException.html?is-external=true" title="class or interface in org.osgi.framework">BundleException</a></pre>
<div class="block">Installs a bundle.</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#installBundle(java.lang.String)" title="class or interface in org.osgi.framework">installBundle</a></code>&nbsp;in interface&nbsp;<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>location</code> - the URL of the bundle to install</dd>
<dt><span class="strong">Returns:</span></dt><dd>the installed bundle</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/BundleException.html?is-external=true" title="class or interface in org.osgi.framework">BundleException</a></code> - if the bundle cannot be installed correctly</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#installBundle(java.lang.String)" title="class or interface in org.osgi.framework"><code>BundleContext.installBundle(java.lang.String)</code></a></dd></dl>
</li>
</ul>
<a name="installBundle(java.lang.String, java.io.InputStream)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>installBundle</h4>
<pre>public&nbsp;<a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/Bundle.html?is-external=true" title="class or interface in org.osgi.framework">Bundle</a>&nbsp;<a href="../../../../src-html/org/apache/felix/ipojo/IPojoContext.html#line.378">installBundle</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>&nbsp;location,
<a href="http://docs.oracle.com/javase/7/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a>&nbsp;input)
throws <a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/BundleException.html?is-external=true" title="class or interface in org.osgi.framework">BundleException</a></pre>
<div class="block">Installs a bundle.</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#installBundle(java.lang.String, java.io.InputStream)" title="class or interface in org.osgi.framework">installBundle</a></code>&nbsp;in interface&nbsp;<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>location</code> - the URL of the bundle to install</dd><dd><code>input</code> - the input stream to load the bundle.</dd>
<dt><span class="strong">Returns:</span></dt><dd>the installed bundle</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/BundleException.html?is-external=true" title="class or interface in org.osgi.framework">BundleException</a></code> - if the bundle cannot be installed correctly</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#installBundle(java.lang.String, java.io.InputStream)" title="class or interface in org.osgi.framework"><code>BundleContext.installBundle(java.lang.String, java.io.InputStream)</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>public&nbsp;<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>&nbsp;<a href="../../../../src-html/org/apache/felix/ipojo/IPojoContext.html#line.393">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>[]&nbsp;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>&nbsp;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>&nbsp;properties)</pre>
<div class="block">Registers a service.
This method uses the service context if specified (and so, registers
the service in this service registry), the bundle context otherwise (the
service will be available to every global instances).</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../../org/apache/felix/ipojo/ServiceContext.html#registerService(java.lang.String[], java.lang.Object, java.util.Dictionary)">registerService</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../org/apache/felix/ipojo/ServiceContext.html" title="interface in org.apache.felix.ipojo">ServiceContext</a></code></dd>
<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>&nbsp;in interface&nbsp;<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> - the service properties to publish</dd>
<dt><span class="strong">Returns:</span></dt><dd>the service registration for this service publication.</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>ServiceContext.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>public&nbsp;<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>&nbsp;<a href="../../../../src-html/org/apache/felix/ipojo/IPojoContext.html#line.412">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>&nbsp;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>&nbsp;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>&nbsp;properties)</pre>
<div class="block">Registers a service.
This method uses the service context if specified (and so, registers
the service in this service registry), the bundle context otherwise (the
service will be available to every global instances).</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../../org/apache/felix/ipojo/ServiceContext.html#registerService(java.lang.String, java.lang.Object, java.util.Dictionary)">registerService</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../org/apache/felix/ipojo/ServiceContext.html" title="interface in org.apache.felix.ipojo">ServiceContext</a></code></dd>
<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>&nbsp;in interface&nbsp;<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 the service object.</dd><dd><code>properties</code> - the service properties to publish.</dd>
<dt><span class="strong">Returns:</span></dt><dd>the service registration for this service publication.</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="removeBundleListener(org.osgi.framework.BundleListener)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>removeBundleListener</h4>
<pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/apache/felix/ipojo/IPojoContext.html#line.425">removeBundleListener</a>(<a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/BundleListener.html?is-external=true" title="class or interface in org.osgi.framework">BundleListener</a>&nbsp;listener)</pre>
<div class="block">Removes a bundle listener.</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#removeBundleListener(org.osgi.framework.BundleListener)" title="class or interface in org.osgi.framework">removeBundleListener</a></code>&nbsp;in interface&nbsp;<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#removeBundleListener(org.osgi.framework.BundleListener)" title="class or interface in org.osgi.framework"><code>BundleContext.removeBundleListener(org.osgi.framework.BundleListener)</code></a></dd></dl>
</li>
</ul>
<a name="removeFrameworkListener(org.osgi.framework.FrameworkListener)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>removeFrameworkListener</h4>
<pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/apache/felix/ipojo/IPojoContext.html#line.434">removeFrameworkListener</a>(<a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/FrameworkListener.html?is-external=true" title="class or interface in org.osgi.framework">FrameworkListener</a>&nbsp;listener)</pre>
<div class="block">Removes a framework listener.</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#removeFrameworkListener(org.osgi.framework.FrameworkListener)" title="class or interface in org.osgi.framework">removeFrameworkListener</a></code>&nbsp;in interface&nbsp;<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#removeFrameworkListener(org.osgi.framework.FrameworkListener)" title="class or interface in org.osgi.framework"><code>BundleContext.removeFrameworkListener(org.osgi.framework.FrameworkListener)</code></a></dd></dl>
</li>
</ul>
<a name="registerService(java.lang.Class,java.lang.Object,java.util.Dictionary)">
<!-- -->
</a><a name="registerService(java.lang.Class, S, java.util.Dictionary)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>registerService</h4>
<pre>public&nbsp;&lt;S&gt;&nbsp;<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>&lt;S&gt;&nbsp;<a href="../../../../src-html/org/apache/felix/ipojo/IPojoContext.html#line.446">registerService</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a>&lt;S&gt;&nbsp;sClass,
S&nbsp;s,
<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>&lt;<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>,?&gt;&nbsp;stringDictionary)</pre>
<div class="block">Registers a service</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.Class, S, java.util.Dictionary)" title="class or interface in org.osgi.framework">registerService</a></code>&nbsp;in interface&nbsp;<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">Type Parameters:</span></dt><dd><code>S</code> - the Service Class (specification)</dd><dt><span class="strong">Parameters:</span></dt><dd><code>sClass</code> - the service class</dd><dd><code>s</code> - the service object (must implement sClass)</dd><dd><code>stringDictionary</code> - service properties</dd>
<dt><span class="strong">Returns:</span></dt><dd>the service registration</dd></dl>
</li>
</ul>
<a name="removeServiceListener(org.osgi.framework.ServiceListener)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>removeServiceListener</h4>
<pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/apache/felix/ipojo/IPojoContext.html#line.462">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>&nbsp;listener)</pre>
<div class="block">Removes a service listener.
Removes the service listener from where it was registered so either in
the global context, or in the service context or in the internal dispatcher.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../../org/apache/felix/ipojo/ServiceContext.html#removeServiceListener(org.osgi.framework.ServiceListener)">removeServiceListener</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../org/apache/felix/ipojo/ServiceContext.html" title="interface in org.apache.felix.ipojo">ServiceContext</a></code></dd>
<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>&nbsp;in interface&nbsp;<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 remove</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../org/apache/felix/ipojo/ServiceContext.html#removeServiceListener(org.osgi.framework.ServiceListener)"><code>ServiceContext.removeServiceListener(org.osgi.framework.ServiceListener)</code></a>,
<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="blockList">
<li class="blockList">
<h4>ungetService</h4>
<pre>public&nbsp;boolean&nbsp;<a href="../../../../src-html/org/apache/felix/ipojo/IPojoContext.html#line.481">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>&nbsp;reference)</pre>
<div class="block">Ungets the service reference.
This method uses the service context if specified,
the bundle context otherwise.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../../org/apache/felix/ipojo/ServiceContext.html#ungetService(org.osgi.framework.ServiceReference)">ungetService</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../org/apache/felix/ipojo/ServiceContext.html" title="interface in org.apache.felix.ipojo">ServiceContext</a></code></dd>
<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>&nbsp;in interface&nbsp;<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>
<a name="getGlobalContext()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getGlobalContext</h4>
<pre>public&nbsp;<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>&nbsp;<a href="../../../../src-html/org/apache/felix/ipojo/IPojoContext.html#line.497">getGlobalContext</a>()</pre>
<div class="block">Gets the global context, i.e. the bundle context of the factory.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>the global bundle context.</dd></dl>
</li>
</ul>
<a name="getServiceContext()">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>getServiceContext</h4>
<pre>public&nbsp;<a href="../../../../org/apache/felix/ipojo/ServiceContext.html" title="interface in org.apache.felix.ipojo">ServiceContext</a>&nbsp;<a href="../../../../src-html/org/apache/felix/ipojo/IPojoContext.html#line.507">getServiceContext</a>()</pre>
<div class="block">Gets the service context, i.e. the composite context.
Returns <code>null</code> if the instance does not live
inside a composite.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>the service context or <code>null</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><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/IPojoContext.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/InstanceStateListener.html" title="interface in org.apache.felix.ipojo"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../../org/apache/felix/ipojo/IPojoFactory.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/IPojoContext.html" target="_top">Frames</a></li>
<li><a href="IPojoContext.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:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#field_summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field_detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor_detail">Constr</a>&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>