[ https://issues.apache.org/jira/browse/DELTASPIKE-1445?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17456020#comment-17456020 ]
ASF subversion and git services commented on DELTASPIKE-1445: ------------------------------------------------------------- Commit 941e3717c18196dc7bcee1de8dcaac86e6f874c4 in deltaspike's branch refs/heads/master from Mark Struberg [ https://gitbox.apache.org/repos/asf?p=deltaspike.git;h=941e371 ] DELTASPIKE-1445 implement Supplier<T> support > Dynamic Config injection via a Supplier<T> > ------------------------------------------ > > Key: DELTASPIKE-1445 > URL: https://issues.apache.org/jira/browse/DELTASPIKE-1445 > Project: DeltaSpike > Issue Type: New Feature > Security Level: public(Regular issues) > Components: Configuration > Affects Versions: 1.9.5 > Reporter: Mark Struberg > Assignee: Mark Struberg > Priority: Major > Fix For: 1.9.6 > > > We should support injecting Configuration via {{Supplier<T>}}. > That way we can {{get()}} to access the current value. > The code to use the feature might look like: > {code} > @Inject > @ConfigProperty(name = "address.header.line", cacheFor = 10, cacheUnit = > TimeUnit.MINUTES) > private Supplier<String> addressHeaderLine; > {code} -- This message was sent by Atlassian Jira (v8.20.1#820001)