instantiate spring bean via factory method
- by Don
Hi,
I need to instantiate a Spring bean in the same manner as this Java code:
MyClass foo = Mockito.mock(MyClass.class);
The XML I need will look something like:
<bean id="foo" class="Mockito" factory-method="mock">
<constructor-arg value="MyClass"/>
</bean>
I can't seem to find the correct syntax for passing a Class object as a parameter to the factory method.
Thanks,
Don