|
From: Steven D. <ste...@gm...> - 2005-01-06 14:53:08
|
The key is java.lang.Object, I want to explicitly register for that. My property editor works for a normal property that accepts an Object parameter but apparently not for lists. It would be nice to use the available property editors when handling lists and maps. The default editors would never be used as none are registered for Object. Likewise, when setting properties the default once would be used because they come first in the list. On Thu, 06 Jan 2005 14:14:30 +0000, Rob Harrop <ro...@ca...> wrote: > The key of the customEditors Map entries must be the name of the class > you are registering the property editor for. > > Rob > > Steven Devijver wrote: > > >I register a delegating property editor like this: > > > > <bean class="org.springframework.beans.factory.config.CustomEditorConfigurer"> > > <property name="customEditors"> > > <map> > > <entry key="java.lang.Object"> > > <bean class="sandbox.DelegatingPropertyEditor"> > > <property name="delegates"> > > <map> > > <entry key="classpath"> > > <bean class="org.springframework.beans.propertyeditors.InputStreamEditor"/> > > </entry> > > <entry key="class"> > > <bean class="org.springframework.beans.propertyeditors.ClassEditor"/> > > </entry> > > </map> > > </property> > > </bean> > > </entry> > > </map> > > </property> > > </bean> > > > >When I create this bean my property editor is not called. Why is that? > > > > <bean id="aList" class="java.util.ArrayList"> > > <constructor-arg> > > <list> > > <value>classpath:sandbox.xml</value> > > <value>class:sandbox.TestSandBox</value> > > <value>a string</value> > > </list> > > </constructor-arg> > > </bean> > > > >Steven > > > > > >------------------------------------------------------- > >The SF.Net email is sponsored by: Beat the post-holiday blues > >Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. > >It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt > >_______________________________________________ > >Springframework-developer mailing list > >Spr...@li... > >https://lists.sourceforge.net/lists/listinfo/springframework-developer > > > > > > > > > > ------------------------------------------------------- > The SF.Net email is sponsored by: Beat the post-holiday blues > Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. > It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt > _______________________________________________ > Springframework-developer mailing list > Spr...@li... > https://lists.sourceforge.net/lists/listinfo/springframework-developer > > |