Is it possible to inject Spring beans into an RestEasy @Path class? I managed to do it with Jersey, with @InjectParam annotation, but for some other reasons, I need to switc
You could use the @Configurable
annotation to make a normal class (created by new
) a spring Bean.
Then you can use the normal Spring annotation to inject everything in that class/instance like in a "normal" Spring Bean.
But that requires AspectJ!
@See Spring Reference Chapter 7.8.1 Using AspectJ to dependency inject domain objects with Spring