DeltaSpike
  1. DeltaSpike
  2. DELTASPIKE-114

@ConfigProperty based on ConfigResolver

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.1-incubating
    • Fix Version/s: 0.2-incubating
    • Component/s: Core
    • Labels:
      None

      Description

      example:
      @Produces
      public MyBean produceMyBean(@ConfigProperty("propertyA") String propertyA, @ConfigProperty("propertyB") String propertyB)
      //...
      }

      we have an agreement for it ( http://s.apache.org/mlW )

        Activity

        Hide
        Gerhard Petracek added a comment -

        optional support for:

        @ConfigProperty(name = "pool_size", eager = true, converter = StringToIntegerConverter.class)
        public @interface PoolSize
        {
        }

        @Inject
        @PoolSize
        private int configuredPoolSize;

        eager should be true by default -> the configured value gets converted during bootstrapping (if the value has an invalid format the bootstrapping process fails).
        if eager is false, the configured value will be converted directly before the injection (e.g. for values stored in dynamic config-sources).

        Show
        Gerhard Petracek added a comment - optional support for: @ConfigProperty(name = "pool_size", eager = true, converter = StringToIntegerConverter.class) public @interface PoolSize { } @Inject @PoolSize private int configuredPoolSize; eager should be true by default -> the configured value gets converted during bootstrapping (if the value has an invalid format the bootstrapping process fails). if eager is false, the configured value will be converted directly before the injection (e.g. for values stored in dynamic config-sources).
        Hide
        Mark Struberg added a comment -

        shipped in deltaspike-0.2-incubating

        Show
        Mark Struberg added a comment - shipped in deltaspike-0.2-incubating

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development