I am trying to inject a class type using a setter. I am able to do it by defining what i want to inject as a bean. How can I do this without having to define what I am injecting as a bean.
When I tried <property name="name" value="com.foo.bar.className"> I get a type mismatch error that string cannot be cast to className.
Well if you really don't want to create a <bean> for that other object, you could implement FactoryBean, and in the getObject() create an instance of the object you want to inject and call the setter.