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

  • Home
  • SEARCH
  • 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 8265431
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T04:48:05+00:00 2026-06-08T04:48:05+00:00

What is the difference between spring source dm server specific Import-Bundle and OSGi’s Require-Bundle

  • 0

What is the difference between spring source dm server specific Import-Bundle and OSGi’s Require-Bundle?
I am confused whether to use Import-Bundle or Require-Bundle in my project.

  • 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-06-08T04:48:08+00:00Added an answer on June 8, 2026 at 4:48 am

    Import-Bundle is similar to Require-Bundle, it creates a complete dependency on the other bundle, including that bundle’s dependencies. This transitivity is bad because you have no idea what you depend, creating the infamous “big ball of mud” problem we’re so familiar with in Object oriented programming.

    In OO, we’ve found a solution to this entanglement by using interfaces, they separate implementation from specification. OSGi is built around a similar albeit of an higher order concept of service contracts. These contracts (interfaces, permissions, helper classes) are stored in a package. In contract based programming you depend on the contracts, not the implementations. Ergo, an OSGi bundle should depend on packages since they represent the contracts.

     Import-Package               <=> interface
     Import-Bundle/Require-Bundle <=> implementation class
    

    Import-Bundle is NOT OSGi, it is a proprietary Spring extension. It is a cleaner form for Require-Bundle; the uncleanliness was necessary to support some Eclipse use cases. The OSGi decided not to adopt this header since the Require-Bundle/Import-Bundle is fundamentally broken if you want to build systems from components.

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

Sidebar

Related Questions

i AM NEW TO Spring Framework . Can any body explain me difference between
What is the difference between ((IEnumerable)source).OfType<T>() and source as IEnumerable<T> For me they look
What is the difference between String and StringBuffer in Java? Is there a maximum
What's the difference between String.matches and Matcher.matches? Is there any difference in terms of
Possible Duplicate: difference between string object and string literal Let's say I have two
Possible Duplicate: What is the difference between String.Empty and “” Is equivalent to String.Empty
In VB what is the difference between String.Format({0:X1}, abyte) and String.Format({0:X2}, abyte) abyte is
I was recently asked this question : What is the difference between String and
what is the difference between json string and parsed json string? for eg in
What's the difference between std::string and std::basic_string ? And why are both needed?

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.