myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gerhard Petracek (JIRA)" <...@myfaces.apache.org>
Subject [jira] [Resolved] (EXTCDI-211) injectable resource bundle key
Date Sun, 07 Aug 2011 23:22:27 GMT

     [ 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

        

Mime
View raw message