Top "Inject" questions

Design pattern to reduce coupling between components, by dynamically injecting into a software component dependencies that it needs to function.

inject bean reference into a Quartz job in Spring?

I managed to configure and schedule a Quartz job using JobStoreTX persistent store in Spring. I do not use Spring's …

spring quartz-scheduler inject
Define AngularJS directive using TypeScript and $inject mechanism

Recently I started refactoring one of the Angular projects I am working on with TypeScript. Using TypeScript classes to define …

angularjs typescript directive inject
Is it possible to inject interface with angular2?

i wonder if there is a proper way to inject interfaces in Angular2? (cf. below) I think this is related …

interface angular inject
How to overwrite Spring service beans by name, using annotations only

Given I have a Spring bean configured as @Service("myService") public class DefaultService extends MyService { } and a class using this …

spring javabeans overwrite autowired inject
How to sum properties of the objects within an array in Ruby

I understand that in order to sum array elements in Ruby one can use the inject method, i.e. array = [1,2,3,4,5]; …

ruby arrays object sum inject
Inheritance and dependency injection

I have a set of angular2 components that should all get some service injected. My first thought was that it …

angular inheritance inject typescript1.8
Getting Unknown Provider error when injecting a Service into an Angular unit test

I'm fairly new to Angular and have reviewed all the similarly related questions on Stack Overflow but none have helped …

testing angularjs mocking inject
Is inject the same thing as reduce in ruby?

I saw that they were documented together here. Are they the same thing? Why does Ruby have so many aliases (…

ruby alias reduce inject
Null after @InjectMocks

I am having some troubles passing a dependency while unit testing with JUnit. Consider these pieces of code: This is …

java null mocking mockito inject