[
https://issues.apache.org/jira/browse/EXTCDI-211?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Gerhard Petracek resolved EXTCDI-211.
-------------------------------------
Resolution: Fixed
Fix Version/s: 1.0.1
> injectable resource bundle key
> ------------------------------
>
> Key: EXTCDI-211
> URL: https://issues.apache.org/jira/browse/EXTCDI-211
> Project: MyFaces CODI
> Issue Type: New Feature
> Components: Core
> Affects Versions: 1.0.0
> Reporter: Gerhard Petracek
> Assignee: Gerhard Petracek
> Fix For: 1.0.1
>
>
> based on EXTCDI-204 it should be possible to use:
> @Bundle //without #name it will be mapped by convention
> public interface MyConfig
> {
> @Named("value1")
> public class MyValue1 implements BundleKey, MyConfig {}
> public class Value2 extends ResourceBundleKey implements MyConfig {}
> }
> usage:
> @Inject
> private MyConfig.MyValue2 value2;
> as mentioned in the example that's esp. useful for a property file based
> type-safe config.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira