Is there a way to set a property in spring to, not an instance of a class, but the class object itself? i.e.
Rather than
No. With a bean tag you instruct Spring on how to instantiate a class.
<bean>
<property name="x">
<value type="java.lang.Class">a.b.c.Foo</value>
</property>
</bean>
That should work.
You could certainly use the static factory method Class.forName(), if there's no more elegant syntax (and I don't believe there is):
<property name="x">
<bean class="java.lang.Class" factory-method="forName">
<constructor-arg value="a.b.c.Foo"/>
</bean>
</property>
Would <property name="x" class="a.b.c.Foo.class"> work? That should be an instance of a Class object...