is there a way to get a hold of `InjectionPoint` i...
# spring
c
is there a way to get a hold of
InjectionPoint
in SpringFu kofu bean definition DSL?
s
Currently I don't think so. Could you describe more in detail your use case to allow me to see if I can do something?
c
basically the same as in conventional Spring application, injection-place-aware prototype factories. e.g.
Copy code
//...
bean(name = "logger", scope = Scope.PROTOTYPE) { injectionPoint ->
    LoggerFactory.getLogger(injectionPoint.getMethodParameter().getContainingClass())
}
s
Did you try with something like
ref<InjectionPoint>()
?
c
Yup,
No qualifying bean of type 'org.springframework.beans.factory.InjectionPoint' available
s
Ok I will discuss that with Juergen
👍 1
c
I can create an issue on the tracker if you want, that'll be tomorrow though, it's late night here.
s
Sure,no hurry create it tomorrow
👌 1