DomainClassConverter instead, will be removed in 1.10@Deprecated public class DomainClassPropertyEditorRegistrar extends Object implements org.springframework.beans.PropertyEditorRegistrar, org.springframework.context.ApplicationContextAware
PropertyEditors for domain classes. To get this
working configure a ConfigurableWebBindingInitializer for your
org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter and register the
DomainClassPropertyEditorRegistrar there:
<bean class="org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter">
<property name="webBindingInitializer">
<bean class="org.springframework.web.bind.support.ConfigurableWebBindingInitializer">
<property name="propertyEditorRegistrars">
<bean class="org.springframework.data.extensions.beans.DomainClassPropertyEditorRegistrar" />
</property>
</bean>
</property>
</bean>
Make sure this bean declaration is in the ApplicationContext created by the DispatcherServlet
whereas the repositories need to be declared in the root
WebApplicationContext.| Constructor and Description |
|---|
DomainClassPropertyEditorRegistrar()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
registerCustomEditors(org.springframework.beans.PropertyEditorRegistry registry)
Deprecated.
|
void |
setApplicationContext(org.springframework.context.ApplicationContext context)
Deprecated.
|
public DomainClassPropertyEditorRegistrar()
public void registerCustomEditors(org.springframework.beans.PropertyEditorRegistry registry)
registerCustomEditors in interface org.springframework.beans.PropertyEditorRegistrarpublic void setApplicationContext(org.springframework.context.ApplicationContext context)
setApplicationContext in interface org.springframework.context.ApplicationContextAwareCopyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.