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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T01:39:11+00:00 2026-06-06T01:39:11+00:00

I currently work on a tracking project using a GPS receiver and a modem

  • 0

I currently work on a tracking project using a GPS receiver and
a modem which sends the GPS positions to a server.
Since this year there is a new modem available with an upgraded firmware library.
The hardware design team at my company developed a new hardware using the new modem.

My problem is now: How can I build my application for both modem types from the same sources?

What I mean by that is: In the new firmware library there are some classes
and methods available which I can’t use with the old modem and the old
firmware library. I use NetBeans as my IDE and therefore I can create easily different
ant configurations to build the application for both modem types,
but how do I implement that in my code. I can’t have parts of the
new firmware library in my code since it wouldn’t even compile, I have to
somehow “dynamically” link the correct firmware library. How is this done in Java?
Furthermore, the company which produces the modems has changed their company
name, and all packages which I import are now com.new_name.bla; instead of
com.old_name.bla;

And that’s mostly in all of my source files. I’m sure there is a way to solve this problem in Java. Has maybe somebody a good example for such an issue?

  • 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-06T01:39:13+00:00Added an answer on June 6, 2026 at 1:39 am

    You could create a single interface that encapsulates the behaviour of the 2 libraries. In your code you would only use that interface. You would only need to write something that transforms each of the libraries to an implementation of that interface.

    I believe this is the Bridge design pattern

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

Sidebar

Related Questions

I currently work on a magento webshop, which loads PrototypeJS as framework. However i
I currently work in a Weblogic Java EE project, where from time to time
I ask this because I am currently trying to work out my own technique,
I'm currently testing GAs new async code snippet using two different tracking codes on
I'm tracking how many activites are currently visible in my app (which should be
I work in an multi-site environment that's currently using Rational ClearCase for source control
I work with EF 4 (not with Self-tracking entities currently). I've added some columns
I've followed this walkthrough to create a wcf+ef+self-tracking entities project. Walkthrough: Serialize Self-Tracking Entities
I'm currently doing some research about my project, a smartphone tracking native application, and
I currently work in an environment where reports must be emailed to users as

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.