jsr299 Questions

5

Solved

In a managed bean, @PostConstruct is called after the regular Java object constructor. Why would I use @PostConstruct to initialize by bean, instead of the regular constructor itself?
Mccarley asked 4/8, 2010 at 14:32

3

Solved

In Spring it was possible to instantiate any class by defining the corresponding bean in xml conf. It was also possible to instantiate more then one bean for the same class with different parameter...
Monagan asked 23/2, 2010 at 14:31

2

Solved

In terms of simplicity and correctness, what is the best way to inject objects of the same class with different scopes? In a servlet I want to have injected objects of the same class with differen...
Barracks asked 29/4, 2012 at 16:3

5

Solved

We have a situation where we provide an external configuration in form of a Map to our running programs. I have found that JSR-330 Dependency Injection gives a much cleaner way to use that configur...
Yoghurt asked 3/11, 2010 at 13:59

2

Solved

I have noticed from several web pages that apparently Spring 3.0 supports @Inject from JSR-330. As we would really like to use JSR-299 syntax for dependency injection in our libraries for both web ...
Brodeur asked 16/6, 2010 at 17:33

1

Solved

How can I use JSR-299 CDI to inject (not annotated) beans from external libraries? Examples: Interface X and its implementations come from a third party lib. How can I decide which implementation...
Arcane asked 3/6, 2010 at 14:33

2

Solved

I know it is still not quite popular, since the spec was released just a few months ago. I haven't "installed" weld yet, I'm just reading, and by this question I want to make sure I've understood ...
Aiken asked 15/2, 2010 at 8:41
1

© 2022 - 2024 — McMap. All rights reserved.