| <!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>IPojoContext (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="IPojoContext (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,"i27":10,"i28":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/IPojoContext.html">Use</a></li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../../index-all.html">Index</a></li> |
| </ul> |
| </div> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li><a href="../../../../org/apache/felix/ipojo/InstanceStateListener.html" title="interface in org.apache.felix.ipojo"><span class="typeNameLink">Prev Class</span></a></li> |
| <li><a href="../../../../org/apache/felix/ipojo/IPojoFactory.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/IPojoContext.html" target="_top">Frames</a></li> |
| <li><a href="IPojoContext.html" target="_top">No Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_top"> |
| <li><a href="../../../../allclasses-noframe.html">All Classes</a></li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_top"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </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 IPojoContext" class="title">Class IPojoContext</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.IPojoContext</li> |
| </ul> |
| </li> |
| </ul> |
| <div class="description"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <dl> |
| <dt>All Implemented Interfaces:</dt> |
| <dd><a href="../../../../org/apache/felix/ipojo/ServiceContext.html" title="interface in org.apache.felix.ipojo">ServiceContext</a></dd> |
| </dl> |
| <hr> |
| <br> |
| <pre>public class <a href="../../../../src-html/org/apache/felix/ipojo/IPojoContext.html#line.49">IPojoContext</a> |
| extends <a href="http://docs.oracle.com/javase/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 iPOJO Context is a BundleContext implementation allowing the separation |
| between Bundle context and Service (Bundle) Context. |
| This is used inside composition to differentiate the classloading context (i.e. |
| Bundle) and the service registry access. |
| This class delegates calls to the good internal context (either the BundleContext |
| or the ServiceContext) according to the method. If the instance does not have a valid |
| service context, the bundle context is always used.</div> |
| <dl> |
| <dt><span class="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>private BundleContext</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/felix/ipojo/IPojoContext.html#m_bundleContext">m_bundleContext</a></span></code> |
| <div class="block">The bundleContext used to access bundle methods.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>private <a href="../../../../org/apache/felix/ipojo/ServiceContext.html" title="interface in org.apache.felix.ipojo">ServiceContext</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/felix/ipojo/IPojoContext.html#m_serviceContext">m_serviceContext</a></span></code> |
| <div class="block">The service context used to access to the service registry.</div> |
| </td> |
| </tr> |
| </table> |
| </li> |
| </ul> |
| <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="constructor.summary"> |
| <!-- --> |
| </a> |
| <h3>Constructor Summary</h3> |
| <table class="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/IPojoContext.html#IPojoContext-BundleContext-">IPojoContext</a></span>(BundleContext context)</code> |
| <div class="block">Creates an iPOJO Context.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colOne"><code><span class="memberNameLink"><a href="../../../../org/apache/felix/ipojo/IPojoContext.html#IPojoContext-BundleContext-org.apache.felix.ipojo.ServiceContext-">IPojoContext</a></span>(BundleContext bundleContext, |
| <a href="../../../../org/apache/felix/ipojo/ServiceContext.html" title="interface in org.apache.felix.ipojo">ServiceContext</a> serviceContext)</code> |
| <div class="block">Creates an iPOJO Context.</div> |
| </td> |
| </tr> |
| </table> |
| </li> |
| </ul> |
| <!-- ========== METHOD SUMMARY =========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method.summary"> |
| <!-- --> |
| </a> |
| <h3>Method Summary</h3> |
| <table class="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/IPojoContext.html#addBundleListener-BundleListener-">addBundleListener</a></span>(BundleListener listener)</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/IPojoContext.html#addFrameworkListener-FrameworkListener-">addFrameworkListener</a></span>(FrameworkListener listener)</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/IPojoContext.html#addServiceListener-ServiceListener-">addServiceListener</a></span>(ServiceListener listener)</code> |
| <div class="block">Add a service listener.</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/IPojoContext.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.</div> |
| </td> |
| </tr> |
| <tr id="i4" class="altColor"> |
| <td class="colFirst"><code>Filter</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/felix/ipojo/IPojoContext.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> filter)</code> |
| <div class="block">Creates a filter objects.</div> |
| </td> |
| </tr> |
| <tr id="i5" class="rowColor"> |
| <td class="colFirst"><code>ServiceReference[]</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/felix/ipojo/IPojoContext.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 the service references matching with the given query.</div> |
| </td> |
| </tr> |
| <tr id="i6" class="altColor"> |
| <td class="colFirst"><code>Bundle</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/felix/ipojo/IPojoContext.html#getBundle--">getBundle</a></span>()</code> |
| <div class="block">Gets the current bundle object.</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/IPojoContext.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="i8" class="altColor"> |
| <td class="colFirst"><code>Bundle</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/felix/ipojo/IPojoContext.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 symbolic name</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/IPojoContext.html#getBundles--">getBundles</a></span>()</code> |
| <div class="block">Gets installed bundles.</div> |
| </td> |
| </tr> |
| <tr id="i10" class="altColor"> |
| <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/IPojoContext.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="i11" class="rowColor"> |
| <td class="colFirst"><code>BundleContext</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/felix/ipojo/IPojoContext.html#getGlobalContext--">getGlobalContext</a></span>()</code> |
| <div class="block">Gets the global context, i.e.</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/IPojoContext.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><S> S</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/felix/ipojo/IPojoContext.html#getService--">getService</a></span>(<any> ref)</code> |
| <div class="block">Gets a service object.</div> |
| </td> |
| </tr> |
| <tr id="i14" 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/IPojoContext.html#getServiceContext--">getServiceContext</a></span>()</code> |
| <div class="block">Gets the service context, i.e.</div> |
| </td> |
| </tr> |
| <tr id="i15" class="rowColor"> |
| <td class="colFirst"><code><S> <any></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/felix/ipojo/IPojoContext.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 for the given interface.</div> |
| </td> |
| </tr> |
| <tr id="i16" class="altColor"> |
| <td class="colFirst"><code>ServiceReference</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/felix/ipojo/IPojoContext.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 given interface.</div> |
| </td> |
| </tr> |
| <tr id="i17" class="rowColor"> |
| <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/IPojoContext.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> sClass, |
| <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 service reference list for the given query.</div> |
| </td> |
| </tr> |
| <tr id="i18" class="altColor"> |
| <td class="colFirst"><code>ServiceReference[]</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/felix/ipojo/IPojoContext.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">Gets service reference list for the given query.</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/IPojoContext.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="i20" class="altColor"> |
| <td class="colFirst"><code>Bundle</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/felix/ipojo/IPojoContext.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="i21" class="rowColor"> |
| <td class="colFirst"><code>private <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/IPojoContext.html#match-java.lang.String-">match</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> filter)</code> |
| <div class="block">This method checks if the filter matches with the iPOJO |
| filter format: <code>(OBJECTCLASS=$ITF)</code>.</div> |
| </td> |
| </tr> |
| <tr id="i22" class="altColor"> |
| <td class="colFirst"><code><S> <any></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/felix/ipojo/IPojoContext.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> sClass, |
| S s, |
| <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>,?> stringDictionary)</code> |
| <div class="block">Registers a service</div> |
| </td> |
| </tr> |
| <tr id="i23" class="rowColor"> |
| <td class="colFirst"><code>ServiceRegistration</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/felix/ipojo/IPojoContext.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">Registers a service.</div> |
| </td> |
| </tr> |
| <tr id="i24" class="altColor"> |
| <td class="colFirst"><code>ServiceRegistration</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/felix/ipojo/IPojoContext.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">Registers a service.</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/IPojoContext.html#removeBundleListener-BundleListener-">removeBundleListener</a></span>(BundleListener listener)</code> |
| <div class="block">Removes a bundle listener.</div> |
| </td> |
| </tr> |
| <tr id="i26" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/felix/ipojo/IPojoContext.html#removeFrameworkListener-FrameworkListener-">removeFrameworkListener</a></span>(FrameworkListener listener)</code> |
| <div class="block">Removes a framework listener.</div> |
| </td> |
| </tr> |
| <tr id="i27" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/felix/ipojo/IPojoContext.html#removeServiceListener-ServiceListener-">removeServiceListener</a></span>(ServiceListener listener)</code> |
| <div class="block">Removes a service listener.</div> |
| </td> |
| </tr> |
| <tr id="i28" class="altColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/felix/ipojo/IPojoContext.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="m_bundleContext"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>m_bundleContext</h4> |
| <pre>private BundleContext <a href="../../../../src-html/org/apache/felix/ipojo/IPojoContext.html#line.54">m_bundleContext</a></pre> |
| <div class="block">The bundleContext used to access bundle methods.</div> |
| </li> |
| </ul> |
| <a name="m_serviceContext"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>m_serviceContext</h4> |
| <pre>private <a href="../../../../org/apache/felix/ipojo/ServiceContext.html" title="interface in org.apache.felix.ipojo">ServiceContext</a> <a href="../../../../src-html/org/apache/felix/ipojo/IPojoContext.html#line.59">m_serviceContext</a></pre> |
| <div class="block">The service context used to access to the service registry.</div> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| <!-- ========= CONSTRUCTOR DETAIL ======== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="constructor.detail"> |
| <!-- --> |
| </a> |
| <h3>Constructor Detail</h3> |
| <a name="IPojoContext-BundleContext-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>IPojoContext</h4> |
| <pre>public <a href="../../../../src-html/org/apache/felix/ipojo/IPojoContext.html#line.68">IPojoContext</a>(BundleContext context)</pre> |
| <div class="block">Creates an iPOJO Context. |
| No service context is specified. |
| This constructor is used when the |
| instance lives in the global context.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>context</code> - the bundle context</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="IPojoContext-BundleContext-org.apache.felix.ipojo.ServiceContext-"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>IPojoContext</h4> |
| <pre>public <a href="../../../../src-html/org/apache/felix/ipojo/IPojoContext.html#line.85">IPojoContext</a>(BundleContext bundleContext, |
| <a href="../../../../org/apache/felix/ipojo/ServiceContext.html" title="interface in org.apache.felix.ipojo">ServiceContext</a> serviceContext)</pre> |
| <div class="block">Creates an iPOJO Context. |
| A service context is used to refer to the |
| service registry. The service context will be |
| used for all service accesses.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>bundleContext</code> - the bundle context</dd> |
| <dd><code>serviceContext</code> - the service context</dd> |
| </dl> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| <!-- ============ METHOD DETAIL ========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method.detail"> |
| <!-- --> |
| </a> |
| <h3>Method Detail</h3> |
| <a name="addBundleListener-BundleListener-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>addBundleListener</h4> |
| <pre>public void <a href="../../../../src-html/org/apache/felix/ipojo/IPojoContext.html#line.95">addBundleListener</a>(BundleListener listener)</pre> |
| <div class="block">Adds a bundle listener.</div> |
| <dl> |
| <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.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/IPojoContext.html#line.104">addFrameworkListener</a>(FrameworkListener listener)</pre> |
| <div class="block">Adds a framework listener.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>listener</code> - the listener object 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="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/IPojoContext.html#line.121">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. |
| This methods registers the listener on the service context |
| if it specified. Otherwise, if the internal dispatcher is enabled, |
| it registers the listener inside the internal dispatcher (if |
| the filter match against the iPOJO Filter format |
| <a href="../../../../org/apache/felix/ipojo/IPojoContext.html#match-java.lang.String-"><code>match(String)</code></a>). Finally, if the internal |
| dispatcher is disabled, it uses the "regular" bundle context.</div> |
| <dl> |
| <dt><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 service listener to add.</dd> |
| <dd><code>filter</code> - the LDAP filter</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>InvalidSyntaxException</code> - if LDAP filter is malformed</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>org.osgi.framework.BundleContext#addServiceListener(org.osgi.framework.ServiceListener, java.lang.String)</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="addServiceListener-ServiceListener-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>addServiceListener</h4> |
| <pre>public void <a href="../../../../src-html/org/apache/felix/ipojo/IPojoContext.html#line.146">addServiceListener</a>(ServiceListener listener)</pre> |
| <div class="block">Add a service listener. |
| This methods registers the listener on the service context |
| if it specified. Otherwise, it uses the "regular" bundle context.</div> |
| <dl> |
| <dt><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 service listener to add.</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>org.osgi.framework.BundleContext#addServiceListener(org.osgi.framework.ServiceListener)</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="match-java.lang.String-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>match</h4> |
| <pre>private <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/IPojoContext.html#line.162">match</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> filter)</pre> |
| <div class="block">This method checks if the filter matches with the iPOJO |
| filter format: <code>(OBJECTCLASS=$ITF)</code>. It tries |
| to extract the required interface (<code>$ITF</code>).</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>filter</code> - the filter to analyze</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the required interface or <code>null</code> |
| if the filter doesn't match with the iPOJO format.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="createFilter-java.lang.String-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>createFilter</h4> |
| <pre>public Filter <a href="../../../../src-html/org/apache/felix/ipojo/IPojoContext.html#line.180">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> filter) |
| throws InvalidSyntaxException</pre> |
| <div class="block">Creates a filter objects. |
| This method always uses the bundle context.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>filter</code> - the string form of the LDAP filter to create</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the filter object.</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>InvalidSyntaxException</code> - if the given filter is malformed</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/IPojoContext.html#line.189">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 symbolic 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="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/IPojoContext.html#line.203">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 the service references matching with the given query. |
| Uses the service context if specified, used the bundle context |
| otherwise.</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 interface</dd> |
| <dd><code>filter</code> - the LDAP filter</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the array of available service references</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>InvalidSyntaxException</code> - if the LDAP filter is malformed</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>org.osgi.framework.BundleContext#getAllServiceReferences(java.lang.String, java.lang.String)</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getBundle--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getBundle</h4> |
| <pre>public Bundle <a href="../../../../src-html/org/apache/felix/ipojo/IPojoContext.html#line.217">getBundle</a>()</pre> |
| <div class="block">Gets the current bundle object.</div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the bundle declaring the component type of the instance |
| using the current IPojoContext.</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/IPojoContext.html#line.227">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/IPojoContext.html#line.236">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/IPojoContext.html#line.246">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/IPojoContext.html#line.257">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="getService--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getService</h4> |
| <pre>public <S> S <a href="../../../../src-html/org/apache/felix/ipojo/IPojoContext.html#line.274">getService</a>(<any> ref)</pre> |
| <div class="block">Gets a service object. |
| The given service reference must come from the same context than |
| where the service is get. |
| This method uses the service context if specified, the bundle |
| context otherwise. |
| This method may throw <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang"><code>IllegalStateException</code></a> if the used bundle |
| context is no more valid (because we're leaving).</div> |
| <dl> |
| <dt><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 required service reference</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the service object or <code>null</code> if the service reference |
| is no more valid or if the service object is not accessible.</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>org.osgi.framework.BundleContext#getService(org.osgi.framework.ServiceReference)</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getServiceReference-java.lang.String-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getServiceReference</h4> |
| <pre>public ServiceReference <a href="../../../../src-html/org/apache/felix/ipojo/IPojoContext.html#line.295">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 given interface. |
| This method uses the service context if specified, the bundle |
| context otherwise.</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 interface name</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>a service reference on a available provider or <code>null</code> |
| if no providers available</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>org.osgi.framework.BundleContext#getServiceReference(java.lang.String)</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="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/IPojoContext.html#line.313">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 for the given interface. |
| This method uses the service context if specified, the bundle |
| context otherwise.</div> |
| <dl> |
| <dt><span class="paramLabel">Type Parameters:</span></dt> |
| <dd><code>S</code> - the service class</dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>sClass</code> - the required interface class</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>a service reference on a available provider or <code>null</code> |
| if no providers available</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>org.osgi.framework.BundleContext#getServiceReference(java.lang.String)</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getServiceReferences-java.lang.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/IPojoContext.html#line.332">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> sClass, |
| <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 service reference list for the given query. |
| This method uses the service context if specified, the bundle |
| context otherwise.</div> |
| <dl> |
| <dt><span class="paramLabel">Type Parameters:</span></dt> |
| <dd><code>S</code> - the service class</dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>sClass</code> - the name of the required service interface</dd> |
| <dd><code>filter</code> - the LDAP filter to apply on service provider</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the array of consistent service reference or <code>null</code> |
| if no available providers</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>InvalidSyntaxException</code> - if the LDAP filter is malformed</dd> |
| </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/IPojoContext.html#line.351">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">Gets service reference list for the given query. |
| This method uses the service context if specified, the bundle |
| context otherwise.</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 name of the required service interface</dd> |
| <dd><code>filter</code> - the LDAP filter to apply on service provider</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the array of consistent service reference or <code>null</code> |
| if no available providers</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code>InvalidSyntaxException</code> - if the LDAP filter is malformed</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>org.osgi.framework.BundleContext#getServiceReferences(java.lang.String, java.lang.String)</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="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/IPojoContext.html#line.366">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/IPojoContext.html#line.378">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.</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="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/IPojoContext.html#line.393">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">Registers a service. |
| This method uses the service context if specified (and so, registers |
| the service in this service registry), the bundle context otherwise (the |
| service will be available to every global instances).</div> |
| <dl> |
| <dt><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 interfaces provided by the service.</dd> |
| <dd><code>service</code> - the service object.</dd> |
| <dd><code>properties</code> - the service properties to publish</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the service registration for this service publication.</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/IPojoContext.html#line.412">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">Registers a service. |
| This method uses the service context if specified (and so, registers |
| the service in this service registry), the bundle context otherwise (the |
| service will be available to every global instances).</div> |
| <dl> |
| <dt><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 interface provided by the service.</dd> |
| <dd><code>service</code> - the the service object.</dd> |
| <dd><code>properties</code> - the service properties to publish.</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the service registration for this service publication.</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>org.osgi.framework.BundleContext#registerService(java.lang.String, java.lang.Object, java.util.Dictionary)</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="removeBundleListener-BundleListener-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>removeBundleListener</h4> |
| <pre>public void <a href="../../../../src-html/org/apache/felix/ipojo/IPojoContext.html#line.425">removeBundleListener</a>(BundleListener listener)</pre> |
| <div class="block">Removes a 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/IPojoContext.html#line.434">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="blockList"> |
| <li class="blockList"> |
| <h4>registerService</h4> |
| <pre>public <S> <any> <a href="../../../../src-html/org/apache/felix/ipojo/IPojoContext.html#line.446">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> sClass, |
| S s, |
| <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>,?> stringDictionary)</pre> |
| <div class="block">Registers a service</div> |
| <dl> |
| <dt><span class="paramLabel">Type Parameters:</span></dt> |
| <dd><code>S</code> - the Service Class (specification)</dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>sClass</code> - the service class</dd> |
| <dd><code>s</code> - the service object (must implement sClass)</dd> |
| <dd><code>stringDictionary</code> - service properties</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the service registration</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/IPojoContext.html#line.462">removeServiceListener</a>(ServiceListener listener)</pre> |
| <div class="block">Removes a service listener. |
| Removes the service listener from where it was registered so either in |
| the global context, or in the service context or in the internal dispatcher.</div> |
| <dl> |
| <dt><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>, |
| <code>org.osgi.framework.BundleContext#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/IPojoContext.html#line.481">ungetService</a>(ServiceReference reference)</pre> |
| <div class="block">Ungets the service reference. |
| This method uses the service context if specified, |
| the bundle context otherwise.</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 reference to unget</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd><code>true</code> if you are the last user of the reference</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><code>org.osgi.framework.BundleContext#ungetService(org.osgi.framework.ServiceReference)</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getGlobalContext--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getGlobalContext</h4> |
| <pre>public BundleContext <a href="../../../../src-html/org/apache/felix/ipojo/IPojoContext.html#line.497">getGlobalContext</a>()</pre> |
| <div class="block">Gets the global context, i.e. the bundle context of the factory.</div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the global bundle context.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getServiceContext--"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>getServiceContext</h4> |
| <pre>public <a href="../../../../org/apache/felix/ipojo/ServiceContext.html" title="interface in org.apache.felix.ipojo">ServiceContext</a> <a href="../../../../src-html/org/apache/felix/ipojo/IPojoContext.html#line.507">getServiceContext</a>()</pre> |
| <div class="block">Gets the service context, i.e. the composite context. |
| Returns <code>null</code> if the instance does not live |
| inside a composite.</div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the service context or <code>null</code>.</dd> |
| </dl> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| </div> |
| <!-- ========= END OF CLASS DATA ========= --> |
| <!-- ======= START OF BOTTOM NAVBAR ====== --> |
| <div class="bottomNav"><a name="navbar.bottom"> |
| <!-- --> |
| </a> |
| <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/IPojoContext.html">Use</a></li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../../index-all.html">Index</a></li> |
| </ul> |
| </div> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li><a href="../../../../org/apache/felix/ipojo/InstanceStateListener.html" title="interface in org.apache.felix.ipojo"><span class="typeNameLink">Prev Class</span></a></li> |
| <li><a href="../../../../org/apache/felix/ipojo/IPojoFactory.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/IPojoContext.html" target="_top">Frames</a></li> |
| <li><a href="IPojoContext.html" target="_top">No Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_bottom"> |
| <li><a href="../../../../allclasses-noframe.html">All Classes</a></li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_bottom"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </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> |