Spring injection into inner class
Is it possible to inject beans into inner class? For example: @Named public class outer { @Inject private SomeClass inst; // Injected correctly private static class inner { @Inject private AnotherClass instance; // Not being injected ... Edit: The "AnotherClass" is used only by inner class, so I do not want to pollute outer class with it. Additional reason to keep the declaration in the inner class is that I'll have to remove the static modifier from the inner class or add it to the outer class member if I move the AnotherClass member to the outer class. Annotations like @Inject are used only