In spring,when bean is defined with prototype scope, getBean() method will return new instance every time we call it.
Would like to know any business scenario where we use this Prototype scope...
Type: Posts; User: tcstcs; Keyword(s):
In spring,when bean is defined with prototype scope, getBean() method will return new instance every time we call it.
Would like to know any business scenario where we use this Prototype scope...
In ur example, where are we making use of SPRING DI?
Thanks for the suggestions. This question was asked in one of the interviews. Let me try to reframe the question
"There is a POJO which gives Insurance details for different CARS. Depending on the...
it will be a user input on which i need to inject a make of the car.
I have a requirement, CAR is a interface and FORD,MARUTI,HYUNDAI,BMW are implementations of CAR interface.
I need to get specifica car details based on the input. In that case how do we inject diff...
Can u explain it more clearly. I am not understanding the reason u have mentioned below to use MethodInvokingFactoryBean.
I see that we can call a method through MeithodInvokingFactoryBean to set more than one parameter? But same thing can be achieved through Constructor injection as well. SO would like to know why and...
Can anyone tell me the diff between Spring JDBC and simple JDBC. Couldn't find good info from google.
Thanks. Even if i refer to existing property from file, its not picking the value:( it shows {user}. Why its happening?
I have spring config file in which I have mentioned beans whose respective JAVA classes are not present and also there are property file params referred in config file which are not present in...
I have config file
<bean id="propertyPlaceholderConfigurer"
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="locations">
<list>
...
Thans Mark.Explanation is much verbose.
IOC concept makes testing easy with Spring. Can someone explain me how this can be achieved with simple example.
Hi,
Can anyone suggest me a good online material for spring.
I know about this http://static.springsource.org/spring/docs/3.0.x.
But its very elaborate and takes long time to read. Looking for...
can u suggest any ref material
When the beans.xml file gets validated and loaded through container? And when does it read properties from a properties file.
Hi,
is there any difference between spring created bean & using new instance of an object??