deltaspike-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Marinchuk <radist-h...@yandex.ru>
Subject parametrized @Configuration
Date Thu, 08 Jun 2017 09:26:23 GMT
Hi!

Currently, the methods from interfaces annotied with @Configuration ignore parameters. Is
it possible (in future) to add support to use templated parameters passed via method parameters
in @ConfigProperty's name parameter?

i.e.
@Configuration(prefix="app.mygroup.", cacheFor=60)
public interface MyConfig {
//........

  @ConfigProperty(name="mapparam.$1")
  public String getMapParam(String key);

  @ConfigProperty(name="someparam.$1.$2")
  public int getSomeParam(String param1, String param2);

//........
}

Best regards,
Andrew Marinchuk

Mime
View raw message