| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| <!-- NewPage --> |
| <html lang="en"> |
| <head> |
| <!-- Generated by javadoc (1.8.0) on Wed Dec 24 15:58:25 CET 2014 --> |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
| <title>PolicyServiceContext (Apache Felix iPOJO ~ JavaDoc 1.12.1 API)</title> |
| <meta name="date" content="2014-12-24"> |
| <link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style"> |
| <script type="text/javascript" src="../../../../script.js"></script> |
| </head> |
| <body> |
| <script type="text/javascript"><!-- |
| try { |
| if (location.href.indexOf('is-external=true') == -1) { |
| parent.document.title="PolicyServiceContext (Apache Felix iPOJO ~ JavaDoc 1.12.1 API)"; |
| } |
| } |
| catch(err) { |
| } |
| //--> |
| var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10,"i21":10,"i22":10,"i23":10,"i24":10,"i25":10,"i26":10}; |
| var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]}; |
| var altColor = "altColor"; |
| var rowColor = "rowColor"; |
| var tableTab = "tableTab"; |
| var activeTableTab = "activeTableTab"; |
| </script> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| <!-- ========= START OF TOP NAVBAR ======= --> |
| <div class="topNav"><a name="navbar.top"> |
| <!-- --> |
| </a> |
| <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> |
| <a name="navbar.top.firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../overview-summary.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="class-use/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="typeNameLink">Prev Class</span></a></li> |
| <li><a href="../../../../org/apache/felix/ipojo/PrimitiveHandler.html" title="class in org.apache.felix.ipojo"><span class="typeNameLink">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: </li> |
| <li>Nested | </li> |
| <li><a href="#field.summary">Field</a> | </li> |
| <li><a href="#constructor.summary">Constr</a> | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li><a href="#field.detail">Field</a> | </li> |
| <li><a href="#constructor.detail">Constr</a> | </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/8/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></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/8/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="simpleTagLabel">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="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation"> |
| <caption><span>Fields</span><span class="tabEnd"> </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><span class="memberNameLink"><a href="../../../../org/apache/felix/ipojo/PolicyServiceContext.html#GLOBAL">GLOBAL</a></span></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><span class="memberNameLink"><a href="../../../../org/apache/felix/ipojo/PolicyServiceContext.html#LOCAL">LOCAL</a></span></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><span class="memberNameLink"><a href="../../../../org/apache/felix/ipojo/PolicyServiceContext.html#LOCAL_AND_GLOBAL">LOCAL_AND_GLOBAL</a></span></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>BundleContext</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/felix/ipojo/PolicyServiceContext.html#m_global">m_global</a></span></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><span class="memberNameLink"><a href="../../../../org/apache/felix/ipojo/PolicyServiceContext.html#m_local">m_local</a></span></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><span class="memberNameLink"><a href="../../../../org/apache/felix/ipojo/PolicyServiceContext.html#m_policy">m_policy</a></span></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="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> |
| <caption><span>Constructors</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colOne" scope="col">Constructor and Description</th> |
| </tr> |
| <tr class="altColor"> |
| <td class="colOne"><code><span class="memberNameLink"><a href="../../../../org/apache/felix/ipojo/PolicyServiceContext.html#PolicyServiceContext-BundleContext-org.apache.felix.ipojo.ServiceContext-int-">PolicyServiceContext</a></span>(BundleContext global, |
| <a href="../../../../org/apache/felix/ipojo/ServiceContext.html" title="interface in org.apache.felix.ipojo">ServiceContext</a> local, |
| int 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="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> |
| <caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colLast" scope="col">Method and Description</th> |
| </tr> |
| <tr id="i0" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/felix/ipojo/PolicyServiceContext.html#addBundleListener-BundleListener-">addBundleListener</a></span>(BundleListener arg0)</code> |
| <div class="block">Adds a bundle listener.</div> |
| </td> |
| </tr> |
| <tr id="i1" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/felix/ipojo/PolicyServiceContext.html#addFrameworkListener-FrameworkListener-">addFrameworkListener</a></span>(FrameworkListener arg0)</code> |
| <div class="block">Adds a framework listener.</div> |
| </td> |
| </tr> |
| <tr id="i2" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/felix/ipojo/PolicyServiceContext.html#addServiceListener-ServiceListener-">addServiceListener</a></span>(ServiceListener listener)</code> |
| <div class="block">Adds a service listener according to the policy.</div> |
| </td> |
| </tr> |
| <tr id="i3" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/felix/ipojo/PolicyServiceContext.html#addServiceListener-ServiceListener-java.lang.String-">addServiceListener</a></span>(ServiceListener listener, |
| <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> filter)</code> |
| <div class="block">Adds a service listener according to the policy.</div> |
| </td> |
| </tr> |
| <tr id="i4" class="altColor"> |
| <td class="colFirst"><code>private ServiceReference[]</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/felix/ipojo/PolicyServiceContext.html#computeServiceReferencesFromBoth-ServiceReference:A-ServiceReference:A-">computeServiceReferencesFromBoth</a></span>(ServiceReference[] refLocal, |
| ServiceReference[] 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 id="i5" class="rowColor"> |
| <td class="colFirst"><code>Filter</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/felix/ipojo/PolicyServiceContext.html#createFilter-java.lang.String-">createFilter</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> arg0)</code> |
| <div class="block">Creates a LDAP filter.</div> |
| </td> |
| </tr> |
| <tr id="i6" class="altColor"> |
| <td class="colFirst"><code>ServiceReference[]</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/felix/ipojo/PolicyServiceContext.html#getAllServiceReferences-java.lang.String-java.lang.String-">getAllServiceReferences</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> clazz, |
| <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> filter)</code> |
| <div class="block">Gets all service references.</div> |
| </td> |
| </tr> |
| <tr id="i7" class="rowColor"> |
| <td class="colFirst"><code>Bundle</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/felix/ipojo/PolicyServiceContext.html#getBundle--">getBundle</a></span>()</code> |
| <div class="block">Gets the current bundle.</div> |
| </td> |
| </tr> |
| <tr id="i8" class="altColor"> |
| <td class="colFirst"><code>Bundle</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/felix/ipojo/PolicyServiceContext.html#getBundle-long-">getBundle</a></span>(long bundleId)</code> |
| <div class="block">Gets the bundle object with the given id.</div> |
| </td> |
| </tr> |
| <tr id="i9" class="rowColor"> |
| <td class="colFirst"><code>Bundle</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/felix/ipojo/PolicyServiceContext.html#getBundle-java.lang.String-">getBundle</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> s)</code> |
| <div class="block">Gets a bundle by name</div> |
| </td> |
| </tr> |
| <tr id="i10" class="altColor"> |
| <td class="colFirst"><code>Bundle[]</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/felix/ipojo/PolicyServiceContext.html#getBundles--">getBundles</a></span>()</code> |
| <div class="block">Gets installed bundles.</div> |
| </td> |
| </tr> |
| <tr id="i11" class="rowColor"> |
| <td class="colFirst"><code><a href="http://docs.oracle.com/javase/8/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/felix/ipojo/PolicyServiceContext.html#getDataFile-java.lang.String-">getDataFile</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> filename)</code> |
| <div class="block">Gets a data file.</div> |
| </td> |
| </tr> |
| <tr id="i12" class="altColor"> |
| <td class="colFirst"><code><a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/felix/ipojo/PolicyServiceContext.html#getProperty-java.lang.String-">getProperty</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key)</code> |
| <div class="block">Gets a property value.</div> |
| </td> |
| </tr> |
| <tr id="i13" class="rowColor"> |
| <td class="colFirst"><code><a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/felix/ipojo/PolicyServiceContext.html#getService-ServiceReference-">getService</a></span>(ServiceReference ref)</code> |
| <div class="block">Gets the service object for the given references.</div> |
| </td> |
| </tr> |
| <tr id="i14" class="altColor"> |
| <td class="colFirst"><code><S> <any></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/felix/ipojo/PolicyServiceContext.html#getServiceReference-java.lang.Class-">getServiceReference</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><S> sClass)</code> |
| <div class="block">Gets a service reference.</div> |
| </td> |
| </tr> |
| <tr id="i15" class="rowColor"> |
| <td class="colFirst"><code>ServiceReference</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/felix/ipojo/PolicyServiceContext.html#getServiceReference-java.lang.String-">getServiceReference</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> clazz)</code> |
| <div class="block">Gets a service reference for the required service specification.</div> |
| </td> |
| </tr> |
| <tr id="i16" class="altColor"> |
| <td class="colFirst"><code><S> <a href="http://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a><<any>></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/felix/ipojo/PolicyServiceContext.html#getServiceReferences-java.lang.Class-java.lang.String-">getServiceReferences</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><S> clazz, |
| <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> filter)</code> |
| <div class="block">Gets a collection of service references</div> |
| </td> |
| </tr> |
| <tr id="i17" class="rowColor"> |
| <td class="colFirst"><code>ServiceReference[]</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/felix/ipojo/PolicyServiceContext.html#getServiceReferences-java.lang.String-java.lang.String-">getServiceReferences</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> clazz, |
| <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> filter)</code> |
| <div class="block">Get a service reference for the required service specification.</div> |
| </td> |
| </tr> |
| <tr id="i18" class="altColor"> |
| <td class="colFirst"><code>Bundle</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/felix/ipojo/PolicyServiceContext.html#installBundle-java.lang.String-">installBundle</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> location)</code> |
| <div class="block">Installs a bundle.</div> |
| </td> |
| </tr> |
| <tr id="i19" class="rowColor"> |
| <td class="colFirst"><code>Bundle</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/felix/ipojo/PolicyServiceContext.html#installBundle-java.lang.String-java.io.InputStream-">installBundle</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> location, |
| <a href="http://docs.oracle.com/javase/8/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a> input)</code> |
| <div class="block">Installs a bundle.</div> |
| </td> |
| </tr> |
| <tr id="i20" class="altColor"> |
| <td class="colFirst"><code><S> <any></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/felix/ipojo/PolicyServiceContext.html#registerService-java.lang.Class-S-java.util.Dictionary-">registerService</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><S> clazz, |
| S svc, |
| <a href="http://docs.oracle.com/javase/8/docs/api/java/util/Dictionary.html?is-external=true" title="class or interface in java.util">Dictionary</a><<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,?> properties)</code> |
| <div class="block">Registers a service.</div> |
| </td> |
| </tr> |
| <tr id="i21" class="rowColor"> |
| <td class="colFirst"><code>ServiceRegistration</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/felix/ipojo/PolicyServiceContext.html#registerService-java.lang.String:A-java.lang.Object-java.util.Dictionary-">registerService</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[] clazzes, |
| <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> service, |
| <a href="http://docs.oracle.com/javase/8/docs/api/java/util/Dictionary.html?is-external=true" title="class or interface in java.util">Dictionary</a> properties)</code> |
| <div class="block">This method is not supported.</div> |
| </td> |
| </tr> |
| <tr id="i22" class="altColor"> |
| <td class="colFirst"><code>ServiceRegistration</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/felix/ipojo/PolicyServiceContext.html#registerService-java.lang.String-java.lang.Object-java.util.Dictionary-">registerService</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> clazz, |
| <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> service, |
| <a href="http://docs.oracle.com/javase/8/docs/api/java/util/Dictionary.html?is-external=true" title="class or interface in java.util">Dictionary</a> properties)</code> |
| <div class="block">This method is not supported.</div> |
| </td> |
| </tr> |
| <tr id="i23" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/felix/ipojo/PolicyServiceContext.html#removeBundleListener-BundleListener-">removeBundleListener</a></span>(BundleListener listener)</code> |
| <div class="block">Removes the bundle listener.</div> |
| </td> |
| </tr> |
| <tr id="i24" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/felix/ipojo/PolicyServiceContext.html#removeFrameworkListener-FrameworkListener-">removeFrameworkListener</a></span>(FrameworkListener listener)</code> |
| <div class="block">Removes a framework listener.</div> |
| </td> |
| </tr> |
| <tr id="i25" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/felix/ipojo/PolicyServiceContext.html#removeServiceListener-ServiceListener-">removeServiceListener</a></span>(ServiceListener listener)</code> |
| <div class="block">Removes a service listener.</div> |
| </td> |
| </tr> |
| <tr id="i26" class="altColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/felix/ipojo/PolicyServiceContext.html#ungetService-ServiceReference-">ungetService</a></span>(ServiceReference 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 java.lang.<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3> |
| <code><a href="http://docs.oracle.com/javase/8/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/8/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/8/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/8/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/8/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/8/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/8/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/8/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/8/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/8/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/8/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 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="seeLabel">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 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="seeLabel">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 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="seeLabel">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 BundleContext <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 <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 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-BundleContext-org.apache.felix.ipojo.ServiceContext-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>PolicyServiceContext</h4> |
| <pre>public <a href="../../../../src-html/org/apache/felix/ipojo/PolicyServiceContext.html#line.101">PolicyServiceContext</a>(BundleContext global, |
| <a href="../../../../org/apache/felix/ipojo/ServiceContext.html" title="interface in org.apache.felix.ipojo">ServiceContext</a> local, |
| int 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="paramLabel">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-ServiceListener-java.lang.String-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>addServiceListener</h4> |
| <pre>public void <a href="../../../../src-html/org/apache/felix/ipojo/PolicyServiceContext.html#line.120">addServiceListener</a>(ServiceListener listener, |
| <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> filter) |
| throws InvalidSyntaxException</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><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../org/apache/felix/ipojo/ServiceContext.html#addServiceListener-ServiceListener-java.lang.String-">addServiceListener</a></code> in interface <code><a href="../../../../org/apache/felix/ipojo/ServiceContext.html" title="interface in org.apache.felix.ipojo">ServiceContext</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>listener</code> - the listener to add</dd> |
| <dd><code>filter</code> - the LDAP filter</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>InvalidSyntaxException</code> - if the filter is malformed.</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>org.apache.felix.ipojo.ServiceContext#addServiceListener(org.osgi.framework.ServiceListener, java.lang.String)</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="addServiceListener-ServiceListener-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>addServiceListener</h4> |
| <pre>public void <a href="../../../../src-html/org/apache/felix/ipojo/PolicyServiceContext.html#line.137">addServiceListener</a>(ServiceListener 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><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../org/apache/felix/ipojo/ServiceContext.html#addServiceListener-ServiceListener-">addServiceListener</a></code> in interface <code><a href="../../../../org/apache/felix/ipojo/ServiceContext.html" title="interface in org.apache.felix.ipojo">ServiceContext</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>listener</code> - the listener to add</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>org.apache.felix.ipojo.ServiceContext#addServiceListener(org.osgi.framework.ServiceListener)</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getAllServiceReferences-java.lang.String-java.lang.String-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getAllServiceReferences</h4> |
| <pre>public ServiceReference[] <a href="../../../../src-html/org/apache/felix/ipojo/PolicyServiceContext.html#line.156">getAllServiceReferences</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> clazz, |
| <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> filter) |
| throws InvalidSyntaxException</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><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../org/apache/felix/ipojo/ServiceContext.html#getAllServiceReferences-java.lang.String-java.lang.String-">getAllServiceReferences</a></code> in interface <code><a href="../../../../org/apache/felix/ipojo/ServiceContext.html" title="interface in org.apache.felix.ipojo">ServiceContext</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>clazz</code> - the required service specification.</dd> |
| <dd><code>filter</code> - the LDAP filter</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the array of service reference, <code>null</code> if no service available</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>InvalidSyntaxException</code> - if the LDAP filter is malformed</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><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-ServiceReference-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getService</h4> |
| <pre>public <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> <a href="../../../../src-html/org/apache/felix/ipojo/PolicyServiceContext.html#line.179">getService</a>(ServiceReference 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><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../org/apache/felix/ipojo/ServiceContext.html#getService--">getService</a></code> in interface <code><a href="../../../../org/apache/felix/ipojo/ServiceContext.html" title="interface in org.apache.felix.ipojo">ServiceContext</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>ref</code> - the service reference</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the service object</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>org.apache.felix.ipojo.ServiceContext#getService(org.osgi.framework.ServiceReference)</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getServiceReference-java.lang.String-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getServiceReference</h4> |
| <pre>public ServiceReference <a href="../../../../src-html/org/apache/felix/ipojo/PolicyServiceContext.html#line.208">getServiceReference</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> 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><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../org/apache/felix/ipojo/ServiceContext.html#getServiceReference-java.lang.String-">getServiceReference</a></code> in interface <code><a href="../../../../org/apache/felix/ipojo/ServiceContext.html" title="interface in org.apache.felix.ipojo">ServiceContext</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>clazz</code> - the required service specification</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>a service reference or <code>null</code> if no matching service available</dd> |
| <dt><span class="seeLabel">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 <S> <any> <a href="../../../../src-html/org/apache/felix/ipojo/PolicyServiceContext.html#line.234">getServiceReference</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><S> sClass)</pre> |
| <div class="block">Gets a service reference. |
| This method is delegated on PolicyServiceContext#getServiceReference(String)</div> |
| <dl> |
| <dt><span class="paramLabel">Type Parameters:</span></dt> |
| <dd><code>S</code> - the service interface class</dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>sClass</code> - the service interface class</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the service reference of <code>null</code> if not found</dd> |
| <dt><span class="seeLabel">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 <S> <a href="http://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a><<any>> <a href="../../../../src-html/org/apache/felix/ipojo/PolicyServiceContext.html#line.247">getServiceReferences</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><S> clazz, |
| <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> filter) |
| throws InvalidSyntaxException</pre> |
| <div class="block">Gets a collection of service references</div> |
| <dl> |
| <dt><span class="paramLabel">Type Parameters:</span></dt> |
| <dd><code>S</code> - the service interface class</dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>clazz</code> - the service interface class</dd> |
| <dd><code>filter</code> - the filter</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the set of service reference</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>InvalidSyntaxException</code> - the filter is invalid</dd> |
| <dt><span class="seeLabel">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 ServiceReference[] <a href="../../../../src-html/org/apache/felix/ipojo/PolicyServiceContext.html#line.264">getServiceReferences</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> clazz, |
| <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> filter) |
| throws InvalidSyntaxException</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><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../org/apache/felix/ipojo/ServiceContext.html#getServiceReferences-java.lang.String-java.lang.String-">getServiceReferences</a></code> in interface <code><a href="../../../../org/apache/felix/ipojo/ServiceContext.html" title="interface in org.apache.felix.ipojo">ServiceContext</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>clazz</code> - the required service specification</dd> |
| <dd><code>filter</code> - the LDAP filter</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>a service reference array or <code>null</code> if not consistent service available</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>InvalidSyntaxException</code> - if the LDAP filter is malformed</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><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-ServiceReference:A-ServiceReference:A-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>computeServiceReferencesFromBoth</h4> |
| <pre>private ServiceReference[] <a href="../../../../src-html/org/apache/felix/ipojo/PolicyServiceContext.html#line.287">computeServiceReferencesFromBoth</a>(ServiceReference[] refLocal, |
| ServiceReference[] 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="paramLabel">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="returnLabel">Returns:</span></dt> |
| <dd>the set of service references</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="registerService-java.lang.String:A-java.lang.Object-java.util.Dictionary-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>registerService</h4> |
| <pre>public ServiceRegistration <a href="../../../../src-html/org/apache/felix/ipojo/PolicyServiceContext.html#line.309">registerService</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[] clazzes, |
| <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> service, |
| <a href="http://docs.oracle.com/javase/8/docs/api/java/util/Dictionary.html?is-external=true" title="class or interface in java.util">Dictionary</a> properties)</pre> |
| <div class="block">This method is not supported. |
| This context can only be used to resolve service dependencies.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../org/apache/felix/ipojo/ServiceContext.html#registerService-java.lang.String:A-java.lang.Object-java.util.Dictionary-">registerService</a></code> in interface <code><a href="../../../../org/apache/felix/ipojo/ServiceContext.html" title="interface in org.apache.felix.ipojo">ServiceContext</a></code></dd> |
| <dt><span class="paramLabel">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="returnLabel">Returns:</span></dt> |
| <dd>the service registration object</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../org/apache/felix/ipojo/ServiceContext.html#registerService-java.lang.String:A-java.lang.Object-java.util.Dictionary-"><code>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 ServiceRegistration <a href="../../../../src-html/org/apache/felix/ipojo/PolicyServiceContext.html#line.322">registerService</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> clazz, |
| <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> service, |
| <a href="http://docs.oracle.com/javase/8/docs/api/java/util/Dictionary.html?is-external=true" title="class or interface in java.util">Dictionary</a> properties)</pre> |
| <div class="block">This method is not supported. |
| This context can only be used to resolve service dependencies.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../org/apache/felix/ipojo/ServiceContext.html#registerService-java.lang.String-java.lang.Object-java.util.Dictionary-">registerService</a></code> in interface <code><a href="../../../../org/apache/felix/ipojo/ServiceContext.html" title="interface in org.apache.felix.ipojo">ServiceContext</a></code></dd> |
| <dt><span class="paramLabel">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="returnLabel">Returns:</span></dt> |
| <dd>the service registration object</dd> |
| <dt><span class="seeLabel">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-ServiceListener-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>removeServiceListener</h4> |
| <pre>public void <a href="../../../../src-html/org/apache/felix/ipojo/PolicyServiceContext.html#line.331">removeServiceListener</a>(ServiceListener listener)</pre> |
| <div class="block">Removes a service listener.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../org/apache/felix/ipojo/ServiceContext.html#removeServiceListener-ServiceListener-">removeServiceListener</a></code> in interface <code><a href="../../../../org/apache/felix/ipojo/ServiceContext.html" title="interface in org.apache.felix.ipojo">ServiceContext</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>listener</code> - the service listener to remove</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>org.apache.felix.ipojo.ServiceContext#removeServiceListener(org.osgi.framework.ServiceListener)</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="ungetService-ServiceReference-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>ungetService</h4> |
| <pre>public boolean <a href="../../../../src-html/org/apache/felix/ipojo/PolicyServiceContext.html#line.346">ungetService</a>(ServiceReference reference)</pre> |
| <div class="block">Ungets the service reference.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../org/apache/felix/ipojo/ServiceContext.html#ungetService--">ungetService</a></code> in interface <code><a href="../../../../org/apache/felix/ipojo/ServiceContext.html" title="interface in org.apache.felix.ipojo">ServiceContext</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>reference</code> - the service reference to unget.</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd><code>true</code> if the service release if the reference is no more used.</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>org.apache.felix.ipojo.ServiceContext#ungetService(org.osgi.framework.ServiceReference)</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="addBundleListener-BundleListener-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>addBundleListener</h4> |
| <pre>public void <a href="../../../../src-html/org/apache/felix/ipojo/PolicyServiceContext.html#line.360">addBundleListener</a>(BundleListener arg0)</pre> |
| <div class="block">Adds a bundle listener. |
| Delegate on the global bundle context.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>arg0</code> - : bundle listener to add</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>org.osgi.framework.BundleContext#addBundleListener(org.osgi.framework.BundleListener)</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="addFrameworkListener-FrameworkListener-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>addFrameworkListener</h4> |
| <pre>public void <a href="../../../../src-html/org/apache/felix/ipojo/PolicyServiceContext.html#line.370">addFrameworkListener</a>(FrameworkListener arg0)</pre> |
| <div class="block">Adds a framework listener. |
| Delegates on the global bundle context.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>arg0</code> - : framework listener to add.</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>org.osgi.framework.BundleContext#addFrameworkListener(org.osgi.framework.FrameworkListener)</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="createFilter-java.lang.String-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>createFilter</h4> |
| <pre>public Filter <a href="../../../../src-html/org/apache/felix/ipojo/PolicyServiceContext.html#line.381">createFilter</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> arg0) |
| throws InvalidSyntaxException</pre> |
| <div class="block">Creates a LDAP filter.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>arg0</code> - the String-form of the filter</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the created filter object</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>InvalidSyntaxException</code> - if the given argument is not a valid against the LDAP grammar.</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>org.osgi.framework.BundleContext#createFilter(java.lang.String)</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getBundle-java.lang.String-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getBundle</h4> |
| <pre>public Bundle <a href="../../../../src-html/org/apache/felix/ipojo/PolicyServiceContext.html#line.390">getBundle</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> s)</pre> |
| <div class="block">Gets a bundle by name</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>s</code> - the name</dd> |
| <dt><span class="returnLabel">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 Bundle <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><span class="returnLabel">Returns:</span></dt> |
| <dd>the current bundle</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>org.osgi.framework.BundleContext#getBundle()</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getBundle-long-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getBundle</h4> |
| <pre>public Bundle <a href="../../../../src-html/org/apache/felix/ipojo/PolicyServiceContext.html#line.409">getBundle</a>(long bundleId)</pre> |
| <div class="block">Gets the bundle object with the given id.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>bundleId</code> - the bundle id</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the bundle object</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>org.osgi.framework.BundleContext#getBundle(long)</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getBundles--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getBundles</h4> |
| <pre>public Bundle[] <a href="../../../../src-html/org/apache/felix/ipojo/PolicyServiceContext.html#line.418">getBundles</a>()</pre> |
| <div class="block">Gets installed bundles.</div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the list of installed bundles</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>org.osgi.framework.BundleContext#getBundles()</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getDataFile-java.lang.String-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getDataFile</h4> |
| <pre>public <a href="http://docs.oracle.com/javase/8/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</a> <a href="../../../../src-html/org/apache/felix/ipojo/PolicyServiceContext.html#line.429">getDataFile</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> filename)</pre> |
| <div class="block">Gets a data file.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>filename</code> - the File name.</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the File object</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>org.osgi.framework.BundleContext#getDataFile(java.lang.String)</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getProperty-java.lang.String-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getProperty</h4> |
| <pre>public <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../src-html/org/apache/felix/ipojo/PolicyServiceContext.html#line.440">getProperty</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key)</pre> |
| <div class="block">Gets a property value.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>key</code> - the key of the asked property</dd> |
| <dt><span class="returnLabel">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="seeLabel">See Also:</span></dt> |
| <dd><code>org.osgi.framework.BundleContext#getProperty(java.lang.String)</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="installBundle-java.lang.String-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>installBundle</h4> |
| <pre>public Bundle <a href="../../../../src-html/org/apache/felix/ipojo/PolicyServiceContext.html#line.451">installBundle</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> location) |
| throws BundleException</pre> |
| <div class="block">Installs a bundle.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>location</code> - the URL of the bundle to install</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the installed bundle</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>BundleException</code> - if the bundle cannot be installed correctly</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>org.osgi.framework.BundleContext#installBundle(java.lang.String)</code></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 Bundle <a href="../../../../src-html/org/apache/felix/ipojo/PolicyServiceContext.html#line.463">installBundle</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> location, |
| <a href="http://docs.oracle.com/javase/8/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a> input) |
| throws BundleException</pre> |
| <div class="block">Installs a bundle.</div> |
| <dl> |
| <dt><span class="paramLabel">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="returnLabel">Returns:</span></dt> |
| <dd>the installed bundle</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>BundleException</code> - if the bundle cannot be installed correctly</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>org.osgi.framework.BundleContext#installBundle(java.lang.String, java.io.InputStream)</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="removeBundleListener-BundleListener-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>removeBundleListener</h4> |
| <pre>public void <a href="../../../../src-html/org/apache/felix/ipojo/PolicyServiceContext.html#line.472">removeBundleListener</a>(BundleListener listener)</pre> |
| <div class="block">Removes the bundle listener.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>listener</code> - the listener to remove</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>org.osgi.framework.BundleContext#removeBundleListener(org.osgi.framework.BundleListener)</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="removeFrameworkListener-FrameworkListener-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>removeFrameworkListener</h4> |
| <pre>public void <a href="../../../../src-html/org/apache/felix/ipojo/PolicyServiceContext.html#line.481">removeFrameworkListener</a>(FrameworkListener listener)</pre> |
| <div class="block">Removes a framework listener.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>listener</code> - the listener to remove</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>org.osgi.framework.BundleContext#removeFrameworkListener(org.osgi.framework.FrameworkListener)</code></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 <S> <any> <a href="../../../../src-html/org/apache/felix/ipojo/PolicyServiceContext.html#line.494">registerService</a>(<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><S> clazz, |
| S svc, |
| <a href="http://docs.oracle.com/javase/8/docs/api/java/util/Dictionary.html?is-external=true" title="class or interface in java.util">Dictionary</a><<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,?> properties)</pre> |
| <div class="block">Registers a service. |
| Operation not supported.</div> |
| <dl> |
| <dt><span class="paramLabel">Type Parameters:</span></dt> |
| <dd><code>S</code> - the type of service</dd> |
| <dt><span class="paramLabel">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="returnLabel">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> |
| <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> |
| <a name="navbar.bottom.firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../overview-summary.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="class-use/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="typeNameLink">Prev Class</span></a></li> |
| <li><a href="../../../../org/apache/felix/ipojo/PrimitiveHandler.html" title="class in org.apache.felix.ipojo"><span class="typeNameLink">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: </li> |
| <li>Nested | </li> |
| <li><a href="#field.summary">Field</a> | </li> |
| <li><a href="#constructor.summary">Constr</a> | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li><a href="#field.detail">Field</a> | </li> |
| <li><a href="#constructor.detail">Constr</a> | </li> |
| <li><a href="#method.detail">Method</a></li> |
| </ul> |
| </div> |
| <a name="skip.navbar.bottom"> |
| <!-- --> |
| </a></div> |
| <!-- ======== END OF BOTTOM NAVBAR ======= --> |
| <p class="legalCopy"><small>Copyright © 2014. All rights reserved.</small></p> |
| </body> |
| </html> |