Added fuller comment(s) about Validators.

This commit is contained in:
Jon Brisbin
2012-04-26 14:31:44 -05:00
parent 4c0b4a8867
commit 077529e830

View File

@@ -25,4 +25,22 @@
-->
<bean id="beforeSavePersonValidator" class="org.springframework.data.rest.test.webmvc.PersonValidator"/>
<!--
The manual configuration (which doesn't look at the bean name) can be done by declaring the
event listener instance yourself. It's significantly more XML, but if you need more control:
-->
<!--
<bean class="org.springframework.data.rest.repository.context.ValidatingRepositoryEventListener">
<property name="validators">
<map>
<entry key="beforeSave">
<list>
<bean class="org.springframework.data.rest.test.webmvc.PersonValidator"/>
</list>
</entry>
</map>
</property>
</bean>
-->
</beans>