How to create a Spring Bean of a Inner class?

Viewed 16623

I would like to create a Spring Bean of a Inner class. If I have the following inner class B:

package x.y.z;

public class A {
    public class B { }
}

I would like to create bean instance in my XML configuration files.

<bean class="x.y.z.A.B" name="innerBean" />
1 Answers
Related