blob: cd062f55bdc130e24def784b32823e506b71d72e [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 Tue Oct 08 19:30:27 CEST 2013 -->
<meta http-equiv="Content-Type" content="text/html" charset="UTF-8">
<title>PolicyServiceContext (Apache Felix iPOJO ~ JavaDoc 1.10.1 API)</title>
<meta name="date" content="2013-10-08">
<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="PolicyServiceContext (Apache Felix iPOJO ~ JavaDoc 1.10.1 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/PolicyServiceContext.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/Pojo.html" title="interface in org.apache.felix.ipojo"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../../org/apache/felix/ipojo/PrimitiveHandler.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/PolicyServiceContext.html" target="_top">Frames</a></li>
<li><a href="PolicyServiceContext.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 PolicyServiceContext" class="title">Class PolicyServiceContext</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.PolicyServiceContext</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/PolicyServiceContext.html#line.51">PolicyServiceContext</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="../../../../org/apache/felix/ipojo/ServiceContext.html" title="interface in org.apache.felix.ipojo">ServiceContext</a></pre>
<div class="block">The policy service context is a service context aiming to resolve service dependencies
inside different service context according to a policy.
So, the policy service context behavior follows one of the three following policy:
<li> Local : services are only resolved in the local service context.</li>
<li> Global : services are only resolved in the global context (hte OSGi one)</li>
<li> Local and Global : services are resolved inside the local context and inside
the global context</li></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>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/felix/ipojo/PolicyServiceContext.html#GLOBAL">GLOBAL</a></strong></code>
<div class="block">Resolving policy, resolves services inside the global context
only.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/felix/ipojo/PolicyServiceContext.html#LOCAL">LOCAL</a></strong></code>
<div class="block">Resolving policy, resolves services only in the composite
context (local).</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/felix/ipojo/PolicyServiceContext.html#LOCAL_AND_GLOBAL">LOCAL_AND_GLOBAL</a></strong></code>
<div class="block">Resolving policy, resolves services only in the composite
(local) and in the global context.</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/PolicyServiceContext.html#m_global">m_global</a></strong></code>
<div class="block">The global service registry.</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/PolicyServiceContext.html#m_local">m_local</a></strong></code>
<div class="block">The local (Composite) Service Registry.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>private int</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/felix/ipojo/PolicyServiceContext.html#m_policy">m_policy</a></strong></code>
<div class="block">The resolving policy to use to resolve
dependencies.</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/PolicyServiceContext.html#PolicyServiceContext(org.osgi.framework.BundleContext, org.apache.felix.ipojo.ServiceContext, int)">PolicyServiceContext</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;global,
<a href="../../../../org/apache/felix/ipojo/ServiceContext.html" title="interface in org.apache.felix.ipojo">ServiceContext</a>&nbsp;local,
int&nbsp;policy)</code>
<div class="block">Creates a PolicyServiceContext.</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/PolicyServiceContext.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;arg0)</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/PolicyServiceContext.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;arg0)</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/PolicyServiceContext.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">Adds a service listener according to the policy.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/felix/ipojo/PolicyServiceContext.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 according to the policy.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>private <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/PolicyServiceContext.html#computeServiceReferencesFromBoth(org.osgi.framework.ServiceReference[], org.osgi.framework.ServiceReference[])">computeServiceReferencesFromBoth</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;refLocal,
<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;refGlobal)</code>
<div class="block">Computes the service reference array from the two given set of service references
according to the policy.</div>
</td>
</tr>
<tr class="rowColor">
<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/PolicyServiceContext.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;arg0)</code>
<div class="block">Creates a LDAP filter.</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/PolicyServiceContext.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 all service references.</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/PolicyServiceContext.html#getBundle()">getBundle</a></strong>()</code>
<div class="block">Gets the current 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/PolicyServiceContext.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="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/PolicyServiceContext.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 name</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/PolicyServiceContext.html#getBundles()">getBundles</a></strong>()</code>
<div class="block">Gets installed bundles.</div>
</td>
</tr>
<tr class="rowColor">
<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/PolicyServiceContext.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="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/PolicyServiceContext.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><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></code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/felix/ipojo/PolicyServiceContext.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>&nbsp;ref)</code>
<div class="block">Gets the service object for the given references.</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/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/PolicyServiceContext.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.</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/PolicyServiceContext.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 required service specification.</div>
</td>
</tr>
<tr class="altColor">
<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/PolicyServiceContext.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;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 a collection of service references</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/PolicyServiceContext.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">Get a service reference for the required service specification.</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/PolicyServiceContext.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="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/PolicyServiceContext.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="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/PolicyServiceContext.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;clazz,
S&nbsp;svc,
<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;properties)</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/PolicyServiceContext.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">This method is not supported.</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/PolicyServiceContext.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">This method is not supported.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../org/apache/felix/ipojo/PolicyServiceContext.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 the 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/PolicyServiceContext.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/PolicyServiceContext.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/PolicyServiceContext.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="LOCAL">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>LOCAL</h4>
<pre>public static final&nbsp;int <a href="../../../../src-html/org/apache/felix/ipojo/PolicyServiceContext.html#line.59">LOCAL</a></pre>
<div class="block">Resolving policy, resolves services only in the composite
context (local).
This policy is the default one for services inherited from
service-level dependencies.</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../constant-values.html#org.apache.felix.ipojo.PolicyServiceContext.LOCAL">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="LOCAL_AND_GLOBAL">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>LOCAL_AND_GLOBAL</h4>
<pre>public static final&nbsp;int <a href="../../../../src-html/org/apache/felix/ipojo/PolicyServiceContext.html#line.66">LOCAL_AND_GLOBAL</a></pre>
<div class="block">Resolving policy, resolves services only in the composite
(local) and in the global context.
This policy is the default one for implementation dependency.</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../constant-values.html#org.apache.felix.ipojo.PolicyServiceContext.LOCAL_AND_GLOBAL">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="GLOBAL">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>GLOBAL</h4>
<pre>public static final&nbsp;int <a href="../../../../src-html/org/apache/felix/ipojo/PolicyServiceContext.html#line.72">GLOBAL</a></pre>
<div class="block">Resolving policy, resolves services inside the global context
only.</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../constant-values.html#org.apache.felix.ipojo.PolicyServiceContext.GLOBAL">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="m_global">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>m_global</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> <a href="../../../../src-html/org/apache/felix/ipojo/PolicyServiceContext.html#line.78">m_global</a></pre>
<div class="block">The global service registry.
Targets the OSGi service registry.</div>
</li>
</ul>
<a name="m_local">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>m_local</h4>
<pre>public&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/PolicyServiceContext.html#line.83">m_local</a></pre>
<div class="block">The local (Composite) Service Registry.</div>
</li>
</ul>
<a name="m_policy">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>m_policy</h4>
<pre>private&nbsp;int <a href="../../../../src-html/org/apache/felix/ipojo/PolicyServiceContext.html#line.89">m_policy</a></pre>
<div class="block">The resolving policy to use to resolve
dependencies.</div>
</li>
</ul>
</li>
</ul>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="PolicyServiceContext(org.osgi.framework.BundleContext, org.apache.felix.ipojo.ServiceContext, int)">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>PolicyServiceContext</h4>
<pre>public&nbsp;<a href="../../../../src-html/org/apache/felix/ipojo/PolicyServiceContext.html#line.101">PolicyServiceContext</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;global,
<a href="../../../../org/apache/felix/ipojo/ServiceContext.html" title="interface in org.apache.felix.ipojo">ServiceContext</a>&nbsp;local,
int&nbsp;policy)</pre>
<div class="block">Creates a PolicyServiceContext.
If the local context is null, sets the policy to
<a href="../../../../org/apache/felix/ipojo/PolicyServiceContext.html#GLOBAL"><code>GLOBAL</code></a>, else use the
given policy.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>global</code> - the global bundle context</dd><dd><code>local</code> - the parent (local) service context</dd><dd><code>policy</code> - the resolution policy</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="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/PolicyServiceContext.html#line.120">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 according to the policy.
Be aware, that the listener can be registered both in the local and in the global context
if the <a href="../../../../org/apache/felix/ipojo/PolicyServiceContext.html#LOCAL_AND_GLOBAL"><code>LOCAL_AND_GLOBAL</code></a> is used.</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 listener to add</dd><dd><code>filter</code> - the LDAP filter</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/InvalidSyntaxException.html?is-external=true" title="class or interface in org.osgi.framework">InvalidSyntaxException</a></code> - if the filter is malformed.</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../org/apache/felix/ipojo/ServiceContext.html#addServiceListener(org.osgi.framework.ServiceListener, java.lang.String)"><code>ServiceContext.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/PolicyServiceContext.html#line.137">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">Adds a service listener according to the policy.
Be aware, that the listener can be registered both in the local and in the global context
if the <a href="../../../../org/apache/felix/ipojo/PolicyServiceContext.html#LOCAL_AND_GLOBAL"><code>LOCAL_AND_GLOBAL</code></a> is used.</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 listener to add</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../org/apache/felix/ipojo/ServiceContext.html#addServiceListener(org.osgi.framework.ServiceListener)"><code>ServiceContext.addServiceListener(org.osgi.framework.ServiceListener)</code></a></dd></dl>
</li>
</ul>
<a name="getAllServiceReferences(java.lang.String, java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getAllServiceReferences</h4>
<pre>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/PolicyServiceContext.html#line.156">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 all service references.
These references are found inside the local registry, global registry or both according to the policy.
The returned array can contain service references from both context.</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 service specification.</dd><dd><code>filter</code> - the LDAP filter</dd>
<dt><span class="strong">Returns:</span></dt><dd>the array of service reference, <code>null</code> if no service available</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/InvalidSyntaxException.html?is-external=true" title="class or interface in org.osgi.framework">InvalidSyntaxException</a></code> - if the LDAP filter is malformed</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../org/apache/felix/ipojo/ServiceContext.html#getAllServiceReferences(java.lang.String, java.lang.String)"><code>ServiceContext.getAllServiceReferences(java.lang.String, java.lang.String)</code></a></dd></dl>
</li>
</ul>
<a name="getService(org.osgi.framework.ServiceReference)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getService</h4>
<pre>public&nbsp;<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;<a href="../../../../src-html/org/apache/felix/ipojo/PolicyServiceContext.html#line.179">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>&nbsp;ref)</pre>
<div class="block">Gets the service object for the given references.
The service is get inside the context according to the policy.</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 service reference</dd>
<dt><span class="strong">Returns:</span></dt><dd>the service object</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../org/apache/felix/ipojo/ServiceContext.html#getService(org.osgi.framework.ServiceReference)"><code>ServiceContext.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/PolicyServiceContext.html#line.208">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 required service specification.
The service is looked inside the context according to the policy.</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 service specification</dd>
<dt><span class="strong">Returns:</span></dt><dd>a service reference or <code>null</code> if no matching service available</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../org/apache/felix/ipojo/ServiceContext.html#getServiceReference(java.lang.String)"><code>ServiceContext.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/PolicyServiceContext.html#line.234">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.
This method is delegated on PolicyServiceContext#getServiceReference(String)</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 interface class</dd><dt><span class="strong">Parameters:</span></dt><dd><code>sClass</code> - the service interface class</dd>
<dt><span class="strong">Returns:</span></dt><dd>the service reference of <code>null</code> if not found</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../org/apache/felix/ipojo/PolicyServiceContext.html#getServiceReference(java.lang.String)"><code>getServiceReference(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/PolicyServiceContext.html#line.247">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;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 a collection of service references</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 interface class</dd><dt><span class="strong">Parameters:</span></dt><dd><code>clazz</code> - the service interface class</dd><dd><code>filter</code> - the filter</dd>
<dt><span class="strong">Returns:</span></dt><dd>the set of service reference</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> - the filter is invalid</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../org/apache/felix/ipojo/PolicyServiceContext.html#getServiceReferences(java.lang.String, java.lang.String)"><code>getServiceReferences(String, String)</code></a></dd></dl>
</li>
</ul>
<a name="getServiceReferences(java.lang.String, java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getServiceReferences</h4>
<pre>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/PolicyServiceContext.html#line.264">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">Get a service reference for the required service specification.
The services are looked inside the context according to the policy.</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 required service specification</dd><dd><code>filter</code> - the LDAP filter</dd>
<dt><span class="strong">Returns:</span></dt><dd>a service reference array or <code>null</code> if not consistent service available</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/InvalidSyntaxException.html?is-external=true" title="class or interface in org.osgi.framework">InvalidSyntaxException</a></code> - if the LDAP filter is malformed</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../org/apache/felix/ipojo/ServiceContext.html#getServiceReference(java.lang.String)"><code>ServiceContext.getServiceReference(java.lang.String)</code></a></dd></dl>
</li>
</ul>
<a name="computeServiceReferencesFromBoth(org.osgi.framework.ServiceReference[], org.osgi.framework.ServiceReference[])">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>computeServiceReferencesFromBoth</h4>
<pre>private&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/PolicyServiceContext.html#line.287">computeServiceReferencesFromBoth</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;refLocal,
<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;refGlobal)</pre>
<div class="block">Computes the service reference array from the two given set of service references
according to the policy.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>refLocal</code> - the set of local references</dd><dd><code>refGlobal</code> - the set of global references</dd>
<dt><span class="strong">Returns:</span></dt><dd>the set of service references</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/PolicyServiceContext.html#line.309">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">This method is not supported.
This context can only be used to resolve service dependencies.</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 specifications</dd><dd><code>service</code> - the service object</dd><dd><code>properties</code> - the service properties</dd>
<dt><span class="strong">Returns:</span></dt><dd>the service registration object</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/PolicyServiceContext.html#line.322">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">This method is not supported.
This context can only be used to resolve service dependencies.</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 specification</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 object</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="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/PolicyServiceContext.html#line.331">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.</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></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/PolicyServiceContext.html#line.346">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.</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 service reference to unget.</dd>
<dt><span class="strong">Returns:</span></dt><dd><code>true</code> if the service release if the reference is no more used.</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../org/apache/felix/ipojo/ServiceContext.html#ungetService(org.osgi.framework.ServiceReference)"><code>ServiceContext.ungetService(org.osgi.framework.ServiceReference)</code></a></dd></dl>
</li>
</ul>
<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/PolicyServiceContext.html#line.360">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;arg0)</pre>
<div class="block">Adds a bundle listener.
Delegate on the global 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#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>arg0</code> - : bundle 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/PolicyServiceContext.html#line.370">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;arg0)</pre>
<div class="block">Adds a framework listener.
Delegates on the global 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#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>arg0</code> - : framework 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#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="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/PolicyServiceContext.html#line.381">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;arg0)
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 LDAP filter.</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>arg0</code> - the String-form of the filter</dd>
<dt><span class="strong">Returns:</span></dt><dd>the created 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 argument is not a valid against the LDAP grammar.</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/PolicyServiceContext.html#line.390">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 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="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/PolicyServiceContext.html#line.399">getBundle</a>()</pre>
<div class="block">Gets the current 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#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 current bundle</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/PolicyServiceContext.html#line.409">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/PolicyServiceContext.html#line.418">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/PolicyServiceContext.html#line.429">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/PolicyServiceContext.html#line.440">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="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/PolicyServiceContext.html#line.451">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/PolicyServiceContext.html#line.463">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 content</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="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/PolicyServiceContext.html#line.472">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 the 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/PolicyServiceContext.html#line.481">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="blockListLast">
<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/PolicyServiceContext.html#line.494">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;clazz,
S&nbsp;svc,
<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;properties)</pre>
<div class="block">Registers a service.
Operation not supported.</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 type of service</dd><dt><span class="strong">Parameters:</span></dt><dd><code>clazz</code> - the class object</dd><dd><code>svc</code> - the service object</dd><dd><code>properties</code> - the properties</dd>
<dt><span class="strong">Returns:</span></dt><dd>the service registration</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/PolicyServiceContext.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/Pojo.html" title="interface in org.apache.felix.ipojo"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../../org/apache/felix/ipojo/PrimitiveHandler.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/PolicyServiceContext.html" target="_top">Frames</a></li>
<li><a href="PolicyServiceContext.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; 2013. All rights reserved.</small></p>
</body>
</html>