Skip to main content
1 vote
2 answers
990 views

I recently decided to play a little bit with spring's Bean injection. I have tried to provoke my app to fail when there were two, same type, Bean definition but application started to run. I come up ...
question maker's user avatar
2 votes
3 answers
2k views

I made a generic material autocomplete, which I would like to use for different API data e.g. countries, people, positions etc. Each of these data share common properties: id, name. Hence, I defined ...
VPNer's user avatar
  • 45
0 votes
2 answers
285 views

I have two beans: CheckPassword and CheckEmail @Service("CheckPassword") @Primary public class CheckPassword implements CheckStringInterface { private static final String regex_password ...
Hiếu Đỗ's user avatar
2 votes
1 answer
127 views

Having previously worked mostly with private fields in my classes and passing required objects into the constructor, I'm experimenting with using public properties with the required modifier keyword ...
user avatar
1 vote
1 answer
112 views

I am in jax-rs and write to write simple Test API. While doing this facing difficulties to resolve construct based injection. Following is service configuration. In which 2 services and 1 decorator ...
keepmoving's user avatar
  • 2,043
1 vote
1 answer
710 views

I am trying to write unit test for the login component below. This component has a constructor with @Inject. How do we test an angular component with @Inject in constructor? Can someone help? Thanks! ...
Jry's user avatar
  • 35
6 votes
2 answers
320 views

I have a Windows Form. It contains many controllers: Grids, buttons, and even a TreeView. Events are defined on most of them. For example, there are multiple independent events that query or command ...
J. Mini's user avatar
  • 1,746
3 votes
1 answer
1k views

I am new to web-component and lit elements. I wanted to see if its possible to inject values from client class to web-component service through constructor injection, like we do in angular spa ...
Pragati Prakash's user avatar
2 votes
0 answers
361 views

I have created a simple lit element bundle file using rollup.config.js. This bundle file is uploaded in NetStorage. I want to inject a value from the client class (angular spa app’s component.ts file) ...
Pragati Prakash's user avatar
0 votes
1 answer
295 views

I have the following scenario in .NET/C#: I have a IMyService that is created via an IMyServiceFactory. public interface IMyServiceFactory { public IMyService CreateMyService(string something); } ...
Searles's user avatar
  • 1,895
0 votes
1 answer
496 views

I've read through many question on dependency injection in WinForms, with this being the most popular one. I was shocked to discover that every example I've seen on this website uses a library for ...
J. Mini's user avatar
  • 1,746
0 votes
2 answers
973 views

to everybody click my question, thank you(my eng is bad). The spring version Im working on is 3.2.9. And it's been used Field Injection like @Controller @RequestMapping("/test/something") ...
tina Marina's user avatar
0 votes
0 answers
49 views

I have my JWT utils class: @Component public class JwtUtils { private final String jwtSecret; private final int jwtExpirationMs; public JwtUtils(@Value("${app.jwtSecret}") ...
Marco's user avatar
  • 382
0 votes
0 answers
33 views

i have difficulties getting my registration in AutoFac done. Let`s say i have the following classes class Foo : IFoo { public Foo(string test, IBar bar) {} } class Bar : IBar { public Bar(bool ...
aluAsker's user avatar
1 vote
1 answer
565 views

A have simple @Configuration class: @Data //setters and getters @ComponentScan @Configuration @ConfigurationProperties(prefix = "some.prefix") public class SomeAutoConfig { public ...
Cezary's user avatar
  • 35

15 30 50 per page
1
2 3 4 5
18