wire/inject/resolve strictly binds service to specific container
See original GitHub issueHi, i use @owja/ioc in Node.js app.
In my app i have a service (for example named MyService) that  has one dependency.
I use wire function for define dependency.
In my case i have two containers in two apps and i want to use MyService in both of containers
But the wire function is created for a specific container strictly binds each service to the container.
In my case i act like this:
const createMyService = wire => class MyService {
  constructor () {
    wire(this, 'myDependency', TYPE.myDependency)
  }
};
But it looks more like a trick.
How can i properly create service for use it in any container?
Issue Analytics
- State:
 - Created 2 years ago
 - Comments:7 (4 by maintainers)
 
Top Results From Across the Web
Service | Kubernetes
An ExternalName Service is a special case of Service that does not have selectors and uses DNS names instead. For more information, see...
Read more >Strictly Come Dancing 2022: Hamza Yassin wins glitterball ...
Hamza Yassin, Fleur East, Helen Skelton and Molly Rainford all fought to land the glitterball trophy.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@hbroer thank you
I think that is the optimal way. Especially with plain javascript.