Uploaded image for project: 'MyFaces CODI'
  1. MyFaces CODI
  2. EXTCDI-211

injectable resource bundle value

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0.0
    • 1.0.1
    • Core
    • None

    Description

      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 {} //not autom. resolvable

      public class Value2 extends BundleValue implements MyConfig {} //autom. resolvable
      }

      usage:

      @Inject
      private MyConfig.MyValue2 value2;

      as mentioned in the example that's esp. useful for a property file based type-safe config.

      Attachments

        Activity

          People

            gpetracek Gerhard Petracek
            gpetracek Gerhard Petracek
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: