You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Functions in a @FunctionScanor @ComponentScan are identified as such if there is a class that implements java.util.function.Function, java.util.function.Supplier, or java.util.function.Consumer, right?
That sounds quite straight forward to realize for the symbol infrastructure.
Another case: Could it also be a class that implements a subtype of those function types? (so I define my own interface that extends j.u.f.Function and then have a class that implements my own interface). And if so, where should the symbol point to? The implementing class or my interface?
(comment in Pivotal Tracker added by Martin Lippert:)
This is implemented now and available from the nightly CI builds. Specific symbols for function beans are now generated for classes that implement Function, Supplier, or Consumer interfaces, either directly or indirectly.
Activity
martinlippert commentedon Nov 20, 2017
Functions in a
@FunctionScanor@ComponentScanare identified as such if there is a class that implementsjava.util.function.Function,java.util.function.Supplier, orjava.util.function.Consumer, right?That sounds quite straight forward to realize for the symbol infrastructure.
Another case: Could it also be a class that implements a subtype of those function types? (so I define my own interface that extends
j.u.f.Functionand then have a class that implements my own interface). And if so, where should the symbol point to? The implementing class or my interface?dsyer commentedon Nov 20, 2017
Correct.
Dunno. The implementing class sounds more useful to me.
spring-projects-issues commentedon Jan 2, 2018
(comment in Pivotal Tracker added by Martin Lippert:)
This is implemented now and available from the nightly CI builds. Specific symbols for function beans are now generated for classes that implement
Function,Supplier, orConsumerinterfaces, either directly or indirectly.