| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| <!-- NewPage --> |
| <html lang="en"> |
| <head> |
| <!-- Generated by javadoc (version 1.7.0_25) on Sat May 17 12:14:27 CEST 2014 --> |
| <meta http-equiv="Content-Type" content="text/html" charset="UTF-8"> |
| <title>Service (Apache Felix iPOJO ~ JavaDoc 1.12.0 API)</title> |
| <meta name="date" content="2014-05-17"> |
| <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> |
| </head> |
| <body> |
| <script type="text/javascript"><!-- |
| if (location.href.indexOf('is-external=true') == -1) { |
| parent.document.title="Service (Apache Felix iPOJO ~ JavaDoc 1.12.0 API)"; |
| } |
| //--> |
| </script> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| <!-- ========= START OF TOP NAVBAR ======= --> |
| <div class="topNav"><a name="navbar_top"> |
| <!-- --> |
| </a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../../overview-summary.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="class-use/Service.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/api/Property.html" title="class in org.apache.felix.ipojo.api"><span class="strong">Prev Class</span></a></li> |
| <li><a href="../../../../../org/apache/felix/ipojo/api/ServiceProperty.html" title="class in org.apache.felix.ipojo.api"><span class="strong">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../../index.html?org/apache/felix/ipojo/api/Service.html" target="_top">Frames</a></li> |
| <li><a href="Service.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.api</div> |
| <h2 title="Class Service" class="title">Class Service</h2> |
| </div> |
| <div class="contentContainer"> |
| <ul class="inheritance"> |
| <li><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li> |
| <li> |
| <ul class="inheritance"> |
| <li>org.apache.felix.ipojo.api.Service</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/api/HandlerConfiguration.html" title="interface in org.apache.felix.ipojo.api">HandlerConfiguration</a></dd> |
| </dl> |
| <hr> |
| <br> |
| <pre>public class <a href="../../../../../src-html/org/apache/felix/ipojo/api/Service.html#line.36">Service</a> |
| extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> |
| implements <a href="../../../../../org/apache/felix/ipojo/api/HandlerConfiguration.html" title="interface in org.apache.felix.ipojo.api">HandlerConfiguration</a></pre> |
| <div class="block">Allows configuring a provided service.</div> |
| <dl><dt><span class="strong">Author:</span></dt> |
| <dd><a href="mailto:dev@felix.apache.org">Felix Project Team</a></dd></dl> |
| </li> |
| </ul> |
| </div> |
| <div class="summary"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- =========== FIELD SUMMARY =========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="field_summary"> |
| <!-- --> |
| </a> |
| <h3>Field Summary</h3> |
| <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation"> |
| <caption><span>Fields</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colLast" scope="col">Field and Description</th> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static int</code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/apache/felix/ipojo/api/Service.html#INSTANCE_STRATEGY">INSTANCE_STRATEGY</a></strong></code> |
| <div class="block">Creation strategy : one service object per instance.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>private <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/apache/felix/ipojo/api/Service.html#m_controller">m_controller</a></strong></code> |
| <div class="block">Service controller.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>private boolean</code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/apache/felix/ipojo/api/Service.html#m_controllerValue">m_controllerValue</a></strong></code> |
| <div class="block">Service Controller value.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>private <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/apache/felix/ipojo/api/Service.html#m_customStrategy">m_customStrategy</a></strong></code> |
| <div class="block">The provided service custom strategy.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>private <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/apache/felix/ipojo/api/Service.html#m_postRegistrationCallback">m_postRegistrationCallback</a></strong></code> |
| <div class="block">Post-Registration callback.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>private <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/apache/felix/ipojo/api/Service.html#m_postUnregistrationCallback">m_postUnregistrationCallback</a></strong></code> |
| <div class="block">Post-Unregistration callback.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>private <a href="http://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/apache/felix/ipojo/api/Service.html#m_properties">m_properties</a></strong></code> |
| <div class="block">The service properties.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>private <a href="http://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/apache/felix/ipojo/api/Service.html#m_specifications">m_specifications</a></strong></code> |
| <div class="block">The provided service specification.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>private int</code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/apache/felix/ipojo/api/Service.html#m_strategy">m_strategy</a></strong></code> |
| <div class="block">The provided service strategy.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static int</code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/apache/felix/ipojo/api/Service.html#SERVICE_STRATEGY">SERVICE_STRATEGY</a></strong></code> |
| <div class="block">Creation strategy : one service object per bundle (OSGi service factory).</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static int</code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/apache/felix/ipojo/api/Service.html#SINGLETON_STRATEGY">SINGLETON_STRATEGY</a></strong></code> |
| <div class="block">Creation strategy : singleton (default).</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static int</code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/apache/felix/ipojo/api/Service.html#STATIC_STRATEGY">STATIC_STRATEGY</a></strong></code> |
| <div class="block">Creation strategy : delegate on the static factory method.</div> |
| </td> |
| </tr> |
| </table> |
| </li> |
| </ul> |
| <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="constructor_summary"> |
| <!-- --> |
| </a> |
| <h3>Constructor Summary</h3> |
| <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> |
| <caption><span>Constructors</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colOne" scope="col">Constructor and Description</th> |
| </tr> |
| <tr class="altColor"> |
| <td class="colOne"><code><strong><a href="../../../../../org/apache/felix/ipojo/api/Service.html#Service()">Service</a></strong>()</code> </td> |
| </tr> |
| </table> |
| </li> |
| </ul> |
| <!-- ========== METHOD SUMMARY =========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method_summary"> |
| <!-- --> |
| </a> |
| <h3>Method Summary</h3> |
| <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> |
| <caption><span>Methods</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colLast" scope="col">Method and Description</th> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code><a href="../../../../../org/apache/felix/ipojo/api/Service.html" title="class in org.apache.felix.ipojo.api">Service</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/apache/felix/ipojo/api/Service.html#addProperty(org.apache.felix.ipojo.api.ServiceProperty)">addProperty</a></strong>(<a href="../../../../../org/apache/felix/ipojo/api/ServiceProperty.html" title="class in org.apache.felix.ipojo.api">ServiceProperty</a> ps)</code> |
| <div class="block">Adds a service property.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../../org/apache/felix/ipojo/api/Service.html" title="class in org.apache.felix.ipojo.api">Service</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/apache/felix/ipojo/api/Service.html#addProperty(java.lang.String, java.lang.Object)">addProperty</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key, |
| <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> obj)</code> |
| <div class="block">Adds a service property.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>private void</code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/apache/felix/ipojo/api/Service.html#ensureValidity()">ensureValidity</a></strong>()</code> |
| <div class="block">Checks the validity of the configuration.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../../org/apache/felix/ipojo/metadata/Element.html" title="class in org.apache.felix.ipojo.metadata">Element</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/apache/felix/ipojo/api/Service.html#getElement()">getElement</a></strong>()</code> |
| <div class="block">Gets the provided service element.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code><a href="../../../../../org/apache/felix/ipojo/handlers/providedservice/ProvidedServiceDescription.html" title="class in org.apache.felix.ipojo.handlers.providedservice">ProvidedServiceDescription</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/apache/felix/ipojo/api/Service.html#getProvidedServiceDescription(org.apache.felix.ipojo.ComponentInstance)">getProvidedServiceDescription</a></strong>(<a href="../../../../../org/apache/felix/ipojo/ComponentInstance.html" title="interface in org.apache.felix.ipojo">ComponentInstance</a> instance)</code> |
| <div class="block">Gets the provided service description associated with the current service.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>private <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/apache/felix/ipojo/api/Service.html#getSpecificationsArray()">getSpecificationsArray</a></strong>()</code> |
| <div class="block">The the service specification array as a String.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>private <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/apache/felix/ipojo/api/Service.html#getStringStrategy()">getStringStrategy</a></strong>()</code> |
| <div class="block">Gets the string-form of the creation strategy.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../../org/apache/felix/ipojo/api/Service.html" title="class in org.apache.felix.ipojo.api">Service</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/apache/felix/ipojo/api/Service.html#setCreationStrategy(int)">setCreationStrategy</a></strong>(int strategy)</code> |
| <div class="block">Sets the creation strategy.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code><a href="../../../../../org/apache/felix/ipojo/api/Service.html" title="class in org.apache.felix.ipojo.api">Service</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/apache/felix/ipojo/api/Service.html#setCreationStrategy(java.lang.String)">setCreationStrategy</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> strategy)</code> |
| <div class="block">Sets the creation strategy.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../../org/apache/felix/ipojo/api/Service.html" title="class in org.apache.felix.ipojo.api">Service</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/apache/felix/ipojo/api/Service.html#setPostRegistrationCallback(java.lang.String)">setPostRegistrationCallback</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> callback)</code> |
| <div class="block">Sets the post-registration callback.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code><a href="../../../../../org/apache/felix/ipojo/api/Service.html" title="class in org.apache.felix.ipojo.api">Service</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/apache/felix/ipojo/api/Service.html#setPostUnregistrationCallback(java.lang.String)">setPostUnregistrationCallback</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> callback)</code> |
| <div class="block">Sets the post-unregistration callback.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../../org/apache/felix/ipojo/api/Service.html" title="class in org.apache.felix.ipojo.api">Service</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/apache/felix/ipojo/api/Service.html#setServiceController(java.lang.String, boolean)">setServiceController</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> field, |
| boolean initialValue)</code> |
| <div class="block">Sets the service controller.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code><a href="../../../../../org/apache/felix/ipojo/api/Service.html" title="class in org.apache.felix.ipojo.api">Service</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/apache/felix/ipojo/api/Service.html#setSpecification(java.lang.String)">setSpecification</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> spec)</code> |
| <div class="block">Sets the provided service specification.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../../org/apache/felix/ipojo/api/Service.html" title="class in org.apache.felix.ipojo.api">Service</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../../org/apache/felix/ipojo/api/Service.html#setSpecifications(java.util.List)">setSpecifications</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a> specs)</code> |
| <div class="block">Sets the provided service specifications.</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/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3> |
| <code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</a></code></li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| <div class="details"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ============ FIELD DETAIL =========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="field_detail"> |
| <!-- --> |
| </a> |
| <h3>Field Detail</h3> |
| <a name="SINGLETON_STRATEGY"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>SINGLETON_STRATEGY</h4> |
| <pre>public static final int <a href="../../../../../src-html/org/apache/felix/ipojo/api/Service.html#line.41">SINGLETON_STRATEGY</a></pre> |
| <div class="block">Creation strategy : singleton (default).</div> |
| <dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.felix.ipojo.api.Service.SINGLETON_STRATEGY">Constant Field Values</a></dd></dl> |
| </li> |
| </ul> |
| <a name="STATIC_STRATEGY"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>STATIC_STRATEGY</h4> |
| <pre>public static final int <a href="../../../../../src-html/org/apache/felix/ipojo/api/Service.html#line.46">STATIC_STRATEGY</a></pre> |
| <div class="block">Creation strategy : delegate on the static factory method.</div> |
| <dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.felix.ipojo.api.Service.STATIC_STRATEGY">Constant Field Values</a></dd></dl> |
| </li> |
| </ul> |
| <a name="INSTANCE_STRATEGY"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>INSTANCE_STRATEGY</h4> |
| <pre>public static final int <a href="../../../../../src-html/org/apache/felix/ipojo/api/Service.html#line.51">INSTANCE_STRATEGY</a></pre> |
| <div class="block">Creation strategy : one service object per instance.</div> |
| <dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.felix.ipojo.api.Service.INSTANCE_STRATEGY">Constant Field Values</a></dd></dl> |
| </li> |
| </ul> |
| <a name="SERVICE_STRATEGY"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>SERVICE_STRATEGY</h4> |
| <pre>public static final int <a href="../../../../../src-html/org/apache/felix/ipojo/api/Service.html#line.56">SERVICE_STRATEGY</a></pre> |
| <div class="block">Creation strategy : one service object per bundle (OSGi service factory).</div> |
| <dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.felix.ipojo.api.Service.SERVICE_STRATEGY">Constant Field Values</a></dd></dl> |
| </li> |
| </ul> |
| <a name="m_specifications"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>m_specifications</h4> |
| <pre>private <a href="http://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a> <a href="../../../../../src-html/org/apache/felix/ipojo/api/Service.html#line.61">m_specifications</a></pre> |
| <div class="block">The provided service specification.</div> |
| </li> |
| </ul> |
| <a name="m_strategy"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>m_strategy</h4> |
| <pre>private int <a href="../../../../../src-html/org/apache/felix/ipojo/api/Service.html#line.66">m_strategy</a></pre> |
| <div class="block">The provided service strategy.</div> |
| </li> |
| </ul> |
| <a name="m_customStrategy"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>m_customStrategy</h4> |
| <pre>private <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../../src-html/org/apache/felix/ipojo/api/Service.html#line.71">m_customStrategy</a></pre> |
| <div class="block">The provided service custom strategy.</div> |
| </li> |
| </ul> |
| <a name="m_properties"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>m_properties</h4> |
| <pre>private <a href="http://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a> <a href="../../../../../src-html/org/apache/felix/ipojo/api/Service.html#line.76">m_properties</a></pre> |
| <div class="block">The service properties.</div> |
| </li> |
| </ul> |
| <a name="m_controller"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>m_controller</h4> |
| <pre>private <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../../src-html/org/apache/felix/ipojo/api/Service.html#line.81">m_controller</a></pre> |
| <div class="block">Service controller.</div> |
| </li> |
| </ul> |
| <a name="m_controllerValue"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>m_controllerValue</h4> |
| <pre>private boolean <a href="../../../../../src-html/org/apache/felix/ipojo/api/Service.html#line.86">m_controllerValue</a></pre> |
| <div class="block">Service Controller value.</div> |
| </li> |
| </ul> |
| <a name="m_postRegistrationCallback"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>m_postRegistrationCallback</h4> |
| <pre>private <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../../src-html/org/apache/felix/ipojo/api/Service.html#line.91">m_postRegistrationCallback</a></pre> |
| <div class="block">Post-Registration callback.</div> |
| </li> |
| </ul> |
| <a name="m_postUnregistrationCallback"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>m_postUnregistrationCallback</h4> |
| <pre>private <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../../src-html/org/apache/felix/ipojo/api/Service.html#line.96">m_postUnregistrationCallback</a></pre> |
| <div class="block">Post-Unregistration callback.</div> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| <!-- ========= CONSTRUCTOR DETAIL ======== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="constructor_detail"> |
| <!-- --> |
| </a> |
| <h3>Constructor Detail</h3> |
| <a name="Service()"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>Service</h4> |
| <pre>public <a href="../../../../../src-html/org/apache/felix/ipojo/api/Service.html#line.36">Service</a>()</pre> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| <!-- ============ METHOD DETAIL ========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method_detail"> |
| <!-- --> |
| </a> |
| <h3>Method Detail</h3> |
| <a name="getElement()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getElement</h4> |
| <pre>public <a href="../../../../../org/apache/felix/ipojo/metadata/Element.html" title="class in org.apache.felix.ipojo.metadata">Element</a> <a href="../../../../../src-html/org/apache/felix/ipojo/api/Service.html#line.102">getElement</a>()</pre> |
| <div class="block">Gets the provided service element.</div> |
| <dl> |
| <dt><strong>Specified by:</strong></dt> |
| <dd><code><a href="../../../../../org/apache/felix/ipojo/api/HandlerConfiguration.html#getElement()">getElement</a></code> in interface <code><a href="../../../../../org/apache/felix/ipojo/api/HandlerConfiguration.html" title="interface in org.apache.felix.ipojo.api">HandlerConfiguration</a></code></dd> |
| <dt><span class="strong">Returns:</span></dt><dd>the 'provides' element.</dd></dl> |
| </li> |
| </ul> |
| <a name="getProvidedServiceDescription(org.apache.felix.ipojo.ComponentInstance)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getProvidedServiceDescription</h4> |
| <pre>public <a href="../../../../../org/apache/felix/ipojo/handlers/providedservice/ProvidedServiceDescription.html" title="class in org.apache.felix.ipojo.handlers.providedservice">ProvidedServiceDescription</a> <a href="../../../../../src-html/org/apache/felix/ipojo/api/Service.html#line.135">getProvidedServiceDescription</a>(<a href="../../../../../org/apache/felix/ipojo/ComponentInstance.html" title="interface in org.apache.felix.ipojo">ComponentInstance</a> instance)</pre> |
| <div class="block">Gets the provided service description associated with the current service.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>instance</code> - the instance on which looking for the provided service description</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>the provided service description or <code>null</code> if not found.</dd></dl> |
| </li> |
| </ul> |
| <a name="ensureValidity()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>ensureValidity</h4> |
| <pre>private void <a href="../../../../../src-html/org/apache/felix/ipojo/api/Service.html#line.166">ensureValidity</a>()</pre> |
| <div class="block">Checks the validity of the configuration.</div> |
| </li> |
| </ul> |
| <a name="getSpecificationsArray()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getSpecificationsArray</h4> |
| <pre>private <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../../src-html/org/apache/felix/ipojo/api/Service.html#line.175">getSpecificationsArray</a>()</pre> |
| <div class="block">The the service specification array as a String.</div> |
| <dl><dt><span class="strong">Returns:</span></dt><dd>the string-from of the service specifications.</dd></dl> |
| </li> |
| </ul> |
| <a name="addProperty(org.apache.felix.ipojo.api.ServiceProperty)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>addProperty</h4> |
| <pre>public <a href="../../../../../org/apache/felix/ipojo/api/Service.html" title="class in org.apache.felix.ipojo.api">Service</a> <a href="../../../../../src-html/org/apache/felix/ipojo/api/Service.html#line.196">addProperty</a>(<a href="../../../../../org/apache/felix/ipojo/api/ServiceProperty.html" title="class in org.apache.felix.ipojo.api">ServiceProperty</a> ps)</pre> |
| <div class="block">Adds a service property.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>ps</code> - the service property to add</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>the current service object.</dd></dl> |
| </li> |
| </ul> |
| <a name="addProperty(java.lang.String, java.lang.Object)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>addProperty</h4> |
| <pre>public <a href="../../../../../org/apache/felix/ipojo/api/Service.html" title="class in org.apache.felix.ipojo.api">Service</a> <a href="../../../../../src-html/org/apache/felix/ipojo/api/Service.html#line.207">addProperty</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key, |
| <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> obj)</pre> |
| <div class="block">Adds a service property.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>key</code> - the property key</dd><dd><code>obj</code> - the initial value (can be <code>null</code>)</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>the current service object.</dd></dl> |
| </li> |
| </ul> |
| <a name="setSpecification(java.lang.String)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setSpecification</h4> |
| <pre>public <a href="../../../../../org/apache/felix/ipojo/api/Service.html" title="class in org.apache.felix.ipojo.api">Service</a> <a href="../../../../../src-html/org/apache/felix/ipojo/api/Service.html#line.226">setSpecification</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> spec)</pre> |
| <div class="block">Sets the provided service specification.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>spec</code> - the service specification</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>the current service object.</dd></dl> |
| </li> |
| </ul> |
| <a name="setSpecifications(java.util.List)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setSpecifications</h4> |
| <pre>public <a href="../../../../../org/apache/felix/ipojo/api/Service.html" title="class in org.apache.felix.ipojo.api">Service</a> <a href="../../../../../src-html/org/apache/felix/ipojo/api/Service.html#line.237">setSpecifications</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a> specs)</pre> |
| <div class="block">Sets the provided service specifications.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>specs</code> - the service specifications</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>the current service object.</dd></dl> |
| </li> |
| </ul> |
| <a name="setCreationStrategy(int)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setCreationStrategy</h4> |
| <pre>public <a href="../../../../../org/apache/felix/ipojo/api/Service.html" title="class in org.apache.felix.ipojo.api">Service</a> <a href="../../../../../src-html/org/apache/felix/ipojo/api/Service.html#line.247">setCreationStrategy</a>(int strategy)</pre> |
| <div class="block">Sets the creation strategy.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>strategy</code> - the service strategy.</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>the current service object</dd></dl> |
| </li> |
| </ul> |
| <a name="setCreationStrategy(java.lang.String)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setCreationStrategy</h4> |
| <pre>public <a href="../../../../../org/apache/felix/ipojo/api/Service.html" title="class in org.apache.felix.ipojo.api">Service</a> <a href="../../../../../src-html/org/apache/felix/ipojo/api/Service.html#line.259">setCreationStrategy</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> strategy)</pre> |
| <div class="block">Sets the creation strategy. |
| This method allows using a customized |
| service strategy.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>strategy</code> - the service strategy</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>the current service object</dd></dl> |
| </li> |
| </ul> |
| <a name="setServiceController(java.lang.String, boolean)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setServiceController</h4> |
| <pre>public <a href="../../../../../org/apache/felix/ipojo/api/Service.html" title="class in org.apache.felix.ipojo.api">Service</a> <a href="../../../../../src-html/org/apache/felix/ipojo/api/Service.html#line.271">setServiceController</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> field, |
| boolean initialValue)</pre> |
| <div class="block">Sets the service controller.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>field</code> - the controller field</dd><dd><code>initialValue</code> - the initial value</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>the current service object</dd></dl> |
| </li> |
| </ul> |
| <a name="setPostRegistrationCallback(java.lang.String)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setPostRegistrationCallback</h4> |
| <pre>public <a href="../../../../../org/apache/felix/ipojo/api/Service.html" title="class in org.apache.felix.ipojo.api">Service</a> <a href="../../../../../src-html/org/apache/felix/ipojo/api/Service.html#line.283">setPostRegistrationCallback</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> callback)</pre> |
| <div class="block">Sets the post-registration callback.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>callback</code> - the callback name (method name)</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>the current service object</dd></dl> |
| </li> |
| </ul> |
| <a name="setPostUnregistrationCallback(java.lang.String)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setPostUnregistrationCallback</h4> |
| <pre>public <a href="../../../../../org/apache/felix/ipojo/api/Service.html" title="class in org.apache.felix.ipojo.api">Service</a> <a href="../../../../../src-html/org/apache/felix/ipojo/api/Service.html#line.293">setPostUnregistrationCallback</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> callback)</pre> |
| <div class="block">Sets the post-unregistration callback.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>callback</code> - the callback name (method name)</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>the current service object</dd></dl> |
| </li> |
| </ul> |
| <a name="getStringStrategy()"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>getStringStrategy</h4> |
| <pre>private <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../../src-html/org/apache/felix/ipojo/api/Service.html#line.302">getStringStrategy</a>()</pre> |
| <div class="block">Gets the string-form of the creation strategy.</div> |
| <dl><dt><span class="strong">Returns:</span></dt><dd>the creation strategy string form</dd></dl> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| </div> |
| <!-- ========= END OF CLASS DATA ========= --> |
| <!-- ======= START OF BOTTOM NAVBAR ====== --> |
| <div class="bottomNav"><a name="navbar_bottom"> |
| <!-- --> |
| </a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../../overview-summary.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="class-use/Service.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/api/Property.html" title="class in org.apache.felix.ipojo.api"><span class="strong">Prev Class</span></a></li> |
| <li><a href="../../../../../org/apache/felix/ipojo/api/ServiceProperty.html" title="class in org.apache.felix.ipojo.api"><span class="strong">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../../index.html?org/apache/felix/ipojo/api/Service.html" target="_top">Frames</a></li> |
| <li><a href="Service.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> |