Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 180265
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T14:33:20+00:00 2026-05-11T14:33:20+00:00

I am interested in using OSGI as a means of managing plugins for a

  • 0

I am interested in using OSGI as a means of managing plugins for a project. That is there can be many implemenators of my interface, each appearing in its own / separate OSGI bundle with the implementation class exported…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T14:33:21+00:00Added an answer on May 11, 2026 at 2:33 pm

    Declarative Service should be the way to go.

    You can declare your interface as a service

    <service>     <provide interface='my.Interface'/>     <property name='foo' value='bar' </service> 

    Each implementation of that interface can define Bundle activation and de-activation methods.
    But what is really neat is their nature: if you are using the latest SCR (the ‘Service Component Runtime’ which is an ‘extender bundle’ implementing the new and improved OSGi R4.2 DS – Declarative Service – specification), your classes will not import anything from the OSGI model. They remain pure POJO.

    Then define another service which depends on your first service:

    <reference name='myInterfaceServiceName'     interface='my.Interface'     bind='myActivationMethod' unbind='myDeactivationMethod'     cardinality='0..n'/> 

    That service will detect and list all your concrete instances of your first service and deal with them as you intent to.

    See the Eclipse Extensions and Declarative Services question for more details.

    The presentation: Component Oriented Development in OSGi with Declarative Services, Spring Dynamic Modules and Apache iPOJO, from EclipseCON2009, will provide you with a concrete example.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm interested in using an Object-Relational Mapping package for an upcoming project. This project
I am interested in using/learning RoR in a project where I have to use
I'm interested in using a code coverage tool for my next .NET project but
I'm interested in using the WMD editor in another project * but I'm not
I’m interested in using libhid to access a custom HID device that we are
I'm interested in using Subsonic 3.0 for developing a new ASP.Net MVC application that
I am interested in using Resque to distribute work to many different computers. I
As developer, I am often interested in new language feature that can make your
I'm interested in using Heroku for my project. I'm not interested in paying for
I'm interested in using the html5 notifications api but have a few questions: Is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.