blob: c5b77b436c3aa80d95912f0714bbe63c846e2752 [file] [log] [blame]
Clement Escoffier50254022008-05-16 20:33:54 +00001
2<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3<HTML>
4
Clement Escoffier130ca572008-10-13 07:33:03 +00005<!-- Mirrored Site: felix.apache.org. File: /site/apache-felix-ipojo-feature-overview.html. Date: Mon, 13 Oct 2008 06:52:40 GMT -->
Clement Escoffier50254022008-05-16 20:33:54 +00006<HEAD>
7 <TITLE>Apache Felix - Apache Felix iPOJO Feature Overview</TITLE>
Clement Escoffier130ca572008-10-13 07:33:03 +00008 <LINK rel="stylesheet" href="media.data/site.css" type="text/css" media="all">
Clement Escoffier50254022008-05-16 20:33:54 +00009 <META http-equiv="Content-Type" content="text/html;charset=UTF-8">
10 </HEAD>
11 <BODY>
Clement Escoffier130ca572008-10-13 07:33:03 +000012 <DIV class="title"><DIV class="logo"><A href="index.html"><IMG border="0" alt="Apache Felix" src="media.data/logo.png"></A></DIV><DIV class="header"><A href="http://www.apache.org/"><IMG border="0" alt="Apache" src="media.data/apache.png"></A></DIV></DIV>
Clement Escoffier50254022008-05-16 20:33:54 +000013 <DIV class="menu">
Clement Escoffier130ca572008-10-13 07:33:03 +000014
15
16
17
18
19 <UL>
20 <LI><A href="news.html" title="news">news</A></LI>
21 <LI><A href="license.html" title="license">license</A></LI>
22 <LI><SPAN class="nobr"><A href="downloads.html" title="Visit page outside Confluence" rel="nofollow">downloads<SUP><IMG class="rendericon" src="../../cwiki.apache.org/confluence/images/icons/linkext7.gif" height="7" width="7" align="absmiddle" alt="" border="0"></SUP></A></SPAN></LI>
23 <LI><A href="documentation.html" title="documentation">documentation</A></LI>
24 <LI><A href="mailinglists.html" title="mailinglists">mailing lists</A></LI>
25 <LI><A href="contributing.html" title="Contributing">contributing</A></LI>
26 <LI><SPAN class="nobr"><A href="http://www.apache.org/" title="Visit page outside Confluence" rel="nofollow">asf<SUP><IMG class="rendericon" src="../../cwiki.apache.org/confluence/images/icons/linkext7.gif" height="7" width="7" align="absmiddle" alt="" border="0"></SUP></A></SPAN></LI>
27 <LI><SPAN class="nobr"><A href="http://www.apache.org/foundation/sponsorship.html" title="Visit page outside Confluence" rel="nofollow">sponsorship<SUP><IMG class="rendericon" src="../../cwiki.apache.org/confluence/images/icons/linkext7.gif" height="7" width="7" align="absmiddle" alt="" border="0"></SUP></A></SPAN></LI>
28 <LI><SPAN class="nobr"><A href="http://www.apache.org/foundation/thanks.html" title="Visit page outside Confluence" rel="nofollow">sponsors<SUP><IMG class="rendericon" src="../../cwiki.apache.org/confluence/images/icons/linkext7.gif" height="7" width="7" align="absmiddle" alt="" border="0"></SUP></A></SPAN>
Clement Escoffier50254022008-05-16 20:33:54 +000029<!-- ApacheCon Ad -->
30<IFRAME src="http://www.apache.org/ads/button.html" style="border-width:0; float: left" frameborder="0" scrolling="no" width="135" height="135"></IFRAME>
31<P style="height: 100px">
32<!-- ApacheCon Ad --></LI>
33</UL>
Clement Escoffier130ca572008-10-13 07:33:03 +000034 </DIV>
Clement Escoffier50254022008-05-16 20:33:54 +000035 <DIV class="main">
36<TABLE class="sectionMacro" border="0" cellpadding="5" cellspacing="0" width="100%"><TBODY><TR>
37<TD class="confluenceTd" valign="top" width="80%">
38<H1><A name="ApacheFelixiPOJOFeatureOverview-ApacheFelixiPOJOFeatureOverview"></A>Apache Felix iPOJO Feature Overview</H1>
39
40<P>This page is an attempt to put all of the features and benefits of iPOJO into a single high-level list so that it is easy to see why you will want to use iPOJO for your applications. This list is not exhaustive, but represents the set of features that are potentially most likely to be needed or are unique.</P>
41
42<H2><A name="ApacheFelixiPOJOFeatureOverview-CoreFeatures"></A>Core Features</H2>
43
44<UL>
45 <LI><B>POJO-based approach</B> &#45; Most components can simply be POJOs and need not have iPOJO&#45; or OSGi-specific API in them.</LI>
46 <LI><B>Simple service provisioning</B> &#45; iPOJO manages all aspects of providing an OSGi service.
47 <UL>
48 <LI><B>Service property management</B>
49 <UL class="alternate" type="square">
50 <LI>Can be controlled by configuration properties.</LI>
51 <LI>Can be mapped to member fields and automatically updated by the component instance at run time by just changing the member field value.</LI>
52 </UL>
53 </LI>
54 <LI><B>Service life cycle participation</B> &#45; The component instance can participate in the service life cycle by declaring a boolean member field that indicates when the service is actually valid (normally a service is assumed to be valid if the component instance's dependencies are satisfied).</LI>
55 </UL>
56 </LI>
57 <LI><B>Rich service dependency model</B> &#45; Automatically manages a full spectrum of service dependencies.
58 <UL>
59 <LI><B>Optional/mandatory</B> service dependencies.</LI>
60 <LI><B>Singular/aggregate</B> service dependencies.</LI>
61 <LI><B>Default service implementations</B> &#45; The component can provide default implementations of dependent services if no providers are available.</LI>
62 <LI><B>Member field or method injection</B> &#45; Also supported in combination.
63 <UL class="alternate" type="square">
64 <LI>Member field injection does not require cluttering component code with bind/unbind methods.</LI>
65 <LI>Member method injection supports various method signatures
66 <UL class="alternate" type="square">
67 <LI>method() &#45; Acts as a simple event-callback mechanism.</LI>
68 <LI>method(&lt;service-interface&gt; svc) &#45; Receives the service object cast to the appropriate interface.</LI>
69 <LI>method(ServiceReference ref) &#45; Receives the OSGi ServiceReference for the service object.</LI>
70 <LI>method(ServiceReference ref, &lt;service-interface&gt; svc) &#45; Receives the OSGi ServiceReference and the service object cast to the appropriate interface.</LI>
71 </UL>
72 </LI>
73 </UL>
74 </LI>
75 <LI><B>Binding policies</B> &#45; Allow components to control how/when their dependencies are bound.
76 <UL class="alternate" type="square">
77 <LI><B>Static</B> &#45; Static dependencies <B>cannot</B> change without invalidating the component instance, so injected services typically do not change at run time and service departures typically result in the component instance being destroyed and potentially recreated.</LI>
78 <LI><B>Dynamic</B> &#45; Dynamic dependencies <B>can</B> change without invalidating the component instance, so injected services can change at run time, but <B>do not</B> change with respect to service priority changes (i.e., they do not automatically switch if a higher priority service appears).</LI>
79 <LI><B>Dynamic priority</B> &#45; Dynamic priority dependencies <B>can</B> change without invalidating the component instance and <B>do</B> dynamically update based on service priority rankings at run time.</LI>
80 </UL>
81 </LI>
82 </UL>
83 </LI>
84 <LI><B>Configuration property management</B> &#45; Integrated with OSGi Configuration Admin service.
85 <UL>
86 <LI><B>Member field/member method injection</B> &#45; Also supported in combination.</LI>
87 <LI><B>Service property propagation</B> &#45; Configuration properties can be configured to update service properties if the component instance is providing a service.</LI>
88 </UL>
89 </LI>
90 <LI><B>Sophisticated concurrency handling</B> &#45; Externalizes concurrency issues so that component code does not need to worry about services changing while they are in use (i.e., no locking protocol in component code).</LI>
91 <LI><B>Deferred instance creation</B> &#45; POJO instances are not created until they are actually needed, thus reducing start-up overhead.</LI>
92 <LI><B>Introspection support</B> &#45; Supports introspecting a component instance and the state of its dependencies.
93 <UL>
94 <LI>Interactive introspection is supported by an arch command for Felix' shell.</LI>
95 </UL>
96 </LI>
97 <LI><B>Extensible</B> &#45; All iPOJO features are implemented via a set of handlers, which is an extensibility mechanism open to developers by which they can support custom functionality (e.g., exporting a provided service remotely, etc.).</LI>
98</UL>
99
100
101<H2><A name="ApacheFelixiPOJOFeatureOverview-Advanced%2FExperimentalFeatures"></A>Advanced/Experimental Features</H2>
102
103<UL>
104 <LI><B>Composite model</B> &#45; iPOJO supports a flexible architectural-like model for composing services.
105 <UL>
106 <LI><B>Flexible composites</B> &#45; A composite is an abstract component implementation.
107 <UL class="alternate" type="square">
108 <LI><B>Sub-services and sub-components</B> &#45; Unlike traditional component composition, an iPOJO composite can be described in terms of services in addition to sub-components; thus sub-service implementation selection is deferred until run time.</LI>
109 <LI><B>Optional/mandatory</B> sub-services and/or sub-components.</LI>
110 <LI><B>Singular/aggregate</B> sub-services and/or sub-components.</LI>
111 </UL>
112 </LI>
113 <LI><B>Hierarchical</B> &#45; A composite component may contain other composite components.
114 <UL class="alternate" type="square">
115 <LI><B>Composite scoping</B> &#45; A composite acts as a scoping mechanism where sub-services/sub-components are not visible externally and external services are not visible internally.</LI>
116 </UL>
117 </LI>
118 <LI><B>Service dependencies</B> &#45; A composite has the full expressive capabilities of primitive components when it comes to service dependencies (see above description of service dependencies in core features).
119 <UL class="alternate" type="square">
120 <LI>For a composite, a service dependency effectively imports an external service into the composite scope from its parent composite (which may be the OSGi service registry in the root case).</LI>
121 </UL>
122 </LI>
123 <LI><B>Composite is just a component</B> &#45; Composites can be instantiated and automatically managed just like a primitive component.</LI>
124 </UL>
125 </LI>
126</UL>
127
128</TD>
129<TD class="confluenceTd" valign="top" width="20%">
Clement Escoffier50254022008-05-16 20:33:54 +0000130<H6><A name="ApacheFelixiPOJOFeatureOverview-Overview"></A><B>Overview</B></H6>
131<UL>
Clement Escoffier130ca572008-10-13 07:33:03 +0000132 <LI><A href="apache-felix-ipojo.html" title="Apache Felix iPOJO">Home Page</A></LI>
Clement Escoffier50254022008-05-16 20:33:54 +0000133 <LI><A href="#" title="Apache Felix iPOJO Feature Overview">iPOJO Feature Overview</A></LI>
Clement Escoffier130ca572008-10-13 07:33:03 +0000134 <LI><A href="download.html" title="Download">Download &amp; Install </A></LI>
Clement Escoffier50254022008-05-16 20:33:54 +0000135</UL>
136
137
138<H6><A name="ApacheFelixiPOJOFeatureOverview-GettingStarted"></A><B>Getting Started</B></H6>
139<UL>
Clement Escoffier130ca572008-10-13 07:33:03 +0000140 <LI><A href="ipojo-in-10-minutes.html" title="iPOJO in 10 minutes">iPOJO in 10 minutes</A></LI>
141 <LI><A href="ipojo-hello-word-maven-based-tutorial.html" title="iPOJO Hello Word (Maven-Based) tutorial">iPOJO Hello Word &#40;Maven&#45;Based&#41; tutorial</A></LI>
142 <LI><A href="ipojo-advanced-tutorial.html" title="iPOJO Advanced Tutorial">iPOJO Advanced Tutorial</A></LI>
Clement Escoffier50254022008-05-16 20:33:54 +0000143</UL>
144
145
146<H6><A name="ApacheFelixiPOJOFeatureOverview-UserGuide"></A><B>User Guide</B></H6>
147<UL>
Clement Escoffier130ca572008-10-13 07:33:03 +0000148 <LI><A href="describing-components.html" title="Describing components">Describing components (handler list) </A></LI>
149 <LI><A href="how-to-use-ipojo-annotations.html" title="How to use iPOJO Annotations">How to use iPOJO Annotations</A></LI>
150 <LI><A href="ipojo-advanced-topics.html" title="iPOJO Advanced Topics">Advanced Topics</A></LI>
151 <LI><A href="ipojo-faq.html" title="iPOJO FAQ">FAQ</A></LI>
Clement Escoffier50254022008-05-16 20:33:54 +0000152</UL>
153
154
155<H6><A name="ApacheFelixiPOJOFeatureOverview-Tools"></A><B>Tools</B></H6>
156<UL>
Clement Escoffier130ca572008-10-13 07:33:03 +0000157 <LI><A href="ipojo-eclipse-plug-in.html" title="iPOJO Eclipse Plug-in">iPOJO Eclipse Plug&#45;in</A></LI>
158 <LI><A href="ipojo-ant-task.html" title="iPOJO Ant Task">iPOJO Ant Task</A></LI>
159 <LI><A href="ipojo-maven-plug-in.html" title="iPOJO Maven Plug-in">iPOJO Maven Plug&#45;in</A></LI>
160 <LI><A href="ipojo-concepts-overview.html" title="iPOJO Concepts Overview">iPOJO concepts overview</A></LI>
Clement Escoffier50254022008-05-16 20:33:54 +0000161</UL>
162
163
164<H6><A name="ApacheFelixiPOJOFeatureOverview-DeveloperGuide"></A><B>Developer Guide</B></H6>
165<UL>
Clement Escoffier130ca572008-10-13 07:33:03 +0000166 <LI>API: <SPAN class="nobr"><A href="http://people.apache.org/~clement/ipojo/api/0.8/" title="Visit page outside Confluence" rel="nofollow">0.8<SUP><IMG class="rendericon" src="../../cwiki.apache.org/confluence/images/icons/linkext7.gif" height="7" width="7" align="absmiddle" alt="" border="0"></SUP></A></SPAN></LI>
167 <LI><A href="how-to-write-your-own-handler.html" title="How to write your own handler">How to write your own handler</A></LI>
168 <LI><A href="how-to-use-ipojo-manipulation-metadata.html" title="How to use iPOJO Manipulation Metadata">How to use iPOJO Manipulation Metadata</A></LI>
Clement Escoffier50254022008-05-16 20:33:54 +0000169</UL>
170
171
172<H6><A name="ApacheFelixiPOJOFeatureOverview-Misc%26Contact"></A><B>Misc &amp; Contact</B></H6>
173<UL>
Clement Escoffier130ca572008-10-13 07:33:03 +0000174 <LI><A href="apache-felix-ipojo-issuestracker.html" title="apache-felix-ipojo-issuestracker">Issues Tracker</A></LI>
175 <LI><A href="apache-felix-ipojo-supportedvms.html" title="apache-felix-ipojo-supportedVMs">Supported JVMs</A></LI>
176 <LI><A href="apache-felix-ipojo-supportedosgi.html" title="apache-felix-ipojo-supportedOSGi">Supported OSGi Implementations</A></LI>
177 <LI><A href="future-ideas.html" title="Future Ideas">Future Ideas</A></LI>
178 <LI><A href="contact.html" title="Contact">Contact</A></LI>
179 <LI><A href="related-works.html" title="Related Works">Related Works</A></LI>
180 <LI><A href="article-presentations.html" title="Article & Presentations">Article &amp; Presentations</A></LI>
Clement Escoffier50254022008-05-16 20:33:54 +0000181</UL>
182
183
184<HR>
185<DIV class="" align="center">
Clement Escoffier130ca572008-10-13 07:33:03 +0000186<P><SPAN class="nobr"><A href="http://cwiki.apache.org/confluence/createrssfeed.action?types=blogpost&amp;statuses=created&amp;statuses=modified&amp;spaces=FELIX&amp;labelString=iPOJO&amp;rssType=atom&amp;maxResults=10&amp;timeSpan=5&amp;publicFeed=true&amp;title=iPOJO%20Atom%20Feed" title="Stay tuned!" rel="nofollow"><IMG src="../../cwiki.apache.org/confluence/images/icons/feed-icon-32x32.png" align="absmiddle" border="0"><SUP><IMG class="rendericon" src="../../cwiki.apache.org/confluence/images/icons/linkext7.gif" height="7" width="7" align="absmiddle" alt="" border="0"></SUP></A></SPAN></P></DIV></TD></TR></TBODY></TABLE>
Clement Escoffier50254022008-05-16 20:33:54 +0000187
188
189 </DIV>
190 </BODY>
191
Clement Escoffier130ca572008-10-13 07:33:03 +0000192<!-- Mirrored Site: felix.apache.org. File: /site/apache-felix-ipojo-feature-overview.html. Date: Mon, 13 Oct 2008 06:52:40 GMT -->
Clement Escoffier50254022008-05-16 20:33:54 +0000193</HTML>