Dont be surprise but the answer is yes..
In spring.xml it Innerclass can be instantiated as:
package com.src;
public class MyClass{
public static class InnerClass{
}
}<bean id="myclass" class="com.src.MyClass$InnerClass" />
Wow !! this is good , spring is amazing.The innerclass should be public and static only.
But i am wondering ,will there be any real significance left of InnerClass or not?
A java blog with a collection of examples and tutorials on Java and related technologies. (Under maintenance with continuous updates) Be in touch with java jazzle or k2java.blogspot.com.
Sunday, March 20, 2011
Can an Innerclass be instantiated in Spring?
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment