Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.0
    • Fix Version/s: 1.0.1
    • Component/s: Core
    • Labels:
      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.

        Activity

        Gerhard Petracek created issue -
        Gerhard Petracek made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 1.0.1 [ 12316527 ]
        Resolution Fixed [ 1 ]
        Gerhard Petracek made changes -
        Summary injectable resource bundle key injectable resource bundle value
        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 {}

            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.
        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.
        Gerhard Petracek made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Gerhard Petracek
            Reporter:
            Gerhard Petracek
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development