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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T17:01:13+00:00 2026-06-15T17:01:13+00:00

I am writing an extension for a certain software. This extension uses many hooks

  • 0

I am writing an extension for a certain software. This extension uses many hooks to add functionality to this software. The software in question uses global state all over, and often has dependencies pulled in, as well as tight coupling by using static method calls. In the code invoked by my hook handlers I often need components from this software and thus seem to have no choice but pulling them in. These hooks are all quite different, passing along different into, at various steps in the processing of the app, and with different handling components in my extension code. This basically means my extension has a mess of entry points, ruling out creating an application object at some main entry point and doing dependency injection from there. Any recommendations on what approaches to take to have as SOLID code as possible in such a case?

  • 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-15T17:01:13+00:00Added an answer on June 15, 2026 at 5:01 pm

    I would consider using Facade design pattern. It will help you to hide the complexity of your current system. With facade pattern you can have only one communication point between your extension and system. In the facade you would just expose the entry points you need for your extension. It will also be the only place which will have dependencies on your current system components.

    There is plenty of resources on the net, so just for start:

    • http://en.wikipedia.org/wiki/Facade_pattern
    • What is Facade Design Pattern?
    • http://www.primos.com.au/primos/Default.aspx?PageContentID=26&tabid=65
    • http://www.dofactory.com/Patterns/PatternFacade.aspx#_self1
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm writing a Chrome Extension that adds functionality to certain pages a user visits.
This may not be possible without writing some crazy extension method which I do
I am writing a extension for visual studio, which will automatically generate some JS
I am writing an extension for Mediawiki. If I know the page_id and page_title
I'm writing an extension for Firefox, and I need to log some data to
I am writing a chrome extension that is a 'content script' I want to
I'm writing a Firefox extension and I need to find the ip address of
I am writing a python extension that seems to be leaking memory. I am
I'm writing a Firefox extension that's to be used in house. Basically, I need
I'm writing a Python extension that runs through a Py_UNICODE array, finds specific (ASCII,

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.