osgi for application developers
play

OSGi for Application Developers Neil Bartlett WeigleWilczek UK - PowerPoint PPT Presentation

OSGi for Application Developers Neil Bartlett WeigleWilczek UK QCon London 2009 Agenda Brief Intro to OSGi OSGi in Infrastructure The (Partial Failure) of Object Orientation Component Oriented Programming Implementing Components DEMO


  1. Dynamic Binding/ Unbinding <reference name="DataSource" interface="javax.sql.DataSource" bind="setDataSource" unbind="unsetDataSource" policy="static"/> <reference name="Log" interface="org.osgi.service.log.LogService" bind="setLog" unbind="unsetLog" cardinality="0..1" policy="dynamic"/>

  2. Truly Reusable Components are Thread-Safe

  3. Thread Safety } private LogService log; protected void setLog(LogService log) { /* ... */ } protected void unsetLog(LogService log) { /* ... */ } Can be called protected void activate(Map configuration) { /* ... */ } concurrently! protected void deactivate() { /* ... */ } @Override public long[] getAllMessages() throws MailboxException { /* ... */ }

  4. Truly Reusable Components are Stateless

  5. ❻ DEMO

  6. CONCLUSION

  7. When is Modularity Not Relevant?

  8. Getting Involved OSGi User’s Forum UK just founded. Free for companies and individuals. http://uk.osgiusers.org/

  9. Getting up to Speed SkillsMatter Training in April (4 days) http://tinyurl.com/sm-osgi Half price for “1st Teach”

  10. Getting up to Speed EclipseCon in 2 weeks! http://www.eclipsecon.org/ 4 tutorials on OSGi (4 hours each) and 15+ sessions Everything you ever wanted to know about OSGi, and then some

Recommend


More recommend