Wednesday, 20 April 2016

Can you instantiate a static inner class in Spring ?


Yes !
But you will have to use the binary name of the class.

For example, if you have a class called Foo in the com.genius package, and this Foo class has a static inner class called Bar, the value of the 'class' attribute on a bean definition would be com.genius.Foo$Bar

No comments:

Post a Comment

Note: only a member of this blog may post a comment.