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 7694597
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T21:21:21+00:00 2026-05-31T21:21:21+00:00

We wrote a framework which uses spring under the hood. This framework is used

  • 0

We wrote a framework which uses spring under the hood. This framework is used by two applications. It is possible to configure a production server with running application1 OR application2 OR application1 and application2.

Now I am looking for a spring mechanism which works similar to OSGI Extension-point idea, so that each application can “contribute” to framework without a configuration file where all applications need to be listed.

Complete project-structure (simplified ;-)):

Framework: A, IPlugin, A.xml

Application 1: B extends IPlugin, b.xml

Application 2: C extends IPlugin, c.xml

Explenation:
“A” uses a list of IPllugin which will be called if a specific task has to be achieved.

I only found the spring way of declaring A as prototyp and setting “B” and “C” as attributes. Therefore I have to list both explicitly in A.xml. But I want to configure contributions in b.xml and c.xml.

Questions:

  • Is there a possibility in spring to be modified if an instance of a special kind of bean is created?

  • Is there something similar to OSGI/Eclipse extension-point in spring out of the box?

  • Any other suggestions?

  • 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. Editorial Team
    Editorial Team
    2026-05-31T21:21:22+00:00Added an answer on May 31, 2026 at 9:21 pm

    My solution was to create a “registry” in the framework project which will be created in spring with scope “singleton”. So each plugin can contribute to this registry because it is available to all plugins during runtime of the application server. Since each plugin should be created new I used the help of a factory which creates new plugin-instances from spring-context.

    More details can be found in a small article I wrote and which can be downloaded

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

Sidebar

Related Questions

I wrote an application which uses spring framework. now i wanted to write a
I have an asp.net application which uses the web part framework to allow users
I am using the Grails framework for a project, which uses Hibernate for ORM.
Current situation: I have the current version of my MVC Framework which uses classes
I wrote a simple VS2010 WPF application which targeted .NET Framework 4 Client Profile
We use an enterprise framework that we wrote to facilitate all sorts of company
i'd like to write a wrapper for a C++ framework. this framework is kinda
Possible Duplicate: C++ HTML template framework, templatizing library, HTML generator library Planning to write
I'm using a framework called Processing which is basically a Java applet. It has
We have a WCF service that uses Entity Framework to query a SQL database.

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.