support for singleton and prototype beans
support for singleton and prototype beans