Details

    • Type: New Feature
    • Status: Closed
    • Priority: 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
        gpetracek 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
        gpetracek 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
        struberg Mark Struberg added a comment -

        shipped in deltaspike-0.2-incubating

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

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development