tag:blogger.com,1999:blog-7126569855685839432.post3974472043445410479..comments2022-04-07T03:03:42.335-07:00Comments on CODEBIAS: Environment configuration property injection using Java CDINazar Annagurbanhttp://www.blogger.com/profile/01208223187117222288noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-7126569855685839432.post-30375072186078669602014-11-27T05:37:29.916-08:002014-11-27T05:37:29.916-08:00I made a very similar capability as a CDI extensio...I made a very similar capability as a CDI extension named Pinject (https://github.com/soulwing/pinject). In addition to injecting strings, it has an extensible converter mechanism that supports many common value types. It also supports many different kinds of property resolution.carlhttps://www.blogger.com/profile/14270799621109096543noreply@blogger.comtag:blogger.com,1999:blog-7126569855685839432.post-81681859686122331222014-03-21T06:49:49.286-07:002014-03-21T06:49:49.286-07:00Thanks for the tips :) Thanks for the tips :) Fabien Travagliahttps://www.blogger.com/profile/07868649788132766070noreply@blogger.comtag:blogger.com,1999:blog-7126569855685839432.post-28874658737798435282013-09-20T10:34:03.759-07:002013-09-20T10:34:03.759-07:00The simplest solution is to have a producer method...The simplest solution is to have a producer method per property type that would convert the property to the appropriate type.<br /><br />Alternatively, the producer method would have to convert to the appropriate type based on injectionPoint.getType() property. This will require changing the signature of the producer method to return Object, though I'm not sure this will work.Nazar Annagurbanhttps://www.blogger.com/profile/01208223187117222288noreply@blogger.comtag:blogger.com,1999:blog-7126569855685839432.post-78490621967617245912013-09-20T07:37:02.438-07:002013-09-20T07:37:02.438-07:00What would be the best way to handle different pro...What would be the best way to handle different property types, String, Integer, Long, Date etc.Dessiehttps://www.blogger.com/profile/08875001930152125384noreply@blogger.com