One of the great improvement in Java EE 5 and beyond it is the introduction of CDI (Context and Dependency Injection). CDI is used for injecting dependencies among a lot of other things like events, interceptors, … and can be used in POJOs.
In some cases instead of injecting other objects (as a dependency injection), you want to inject a value from a properties file into a class that needs to be configured externally.
I have written an example in Tomitribe community zone: https://github.com/tomitribe/community/tree/master/injecting-properties
We keep learning,
Alex.
Sora ni akogarete sora wo kakete yuku, Ano ko no inochi wa hikoukigumo (The Wind Rises - Joe Hisaishi, Yumi Arai)
2 comentarios:
cheap mlb jerseys
cheapjordans
michael kors handbags
jordan shoes
hermes handbags
birkin bag
curry 6
balenciaga sneakers
hermes bag
yeezy boost 350
supreme clothing
supreme hoodie
jordan shoes
moncler jackets
yeezys
kd 12 shoes
supreme
nike shox for men
goyard
balenciaga trainers
Publicar un comentario