lucasward,
Thanks for the reply. I was aware of those custom property editors, and I
actually use them in other cases. However, I had a map I wanted to
populate with the correct element type...
Type: Posts; User: bonnyr; Keyword(s):
lucasward,
Thanks for the reply. I was aware of those custom property editors, and I
actually use them in other cases. However, I had a map I wanted to
populate with the correct element type...
How do I configure a custom property editor such that spring will use it to
convert the value attributes of the <map> <entry> element?
so, I have something like:
<bean id="beanX">
<property...
Jörg,
My problem is that the prototype definition contains stitching that is easily
done by spring, but is only partial - the rest of the configuration is a result
of user (deployment) time...
Joerg
Maybe I'm not explaining myself correctly - the bean definitions for the
prototype instances do not exist anywhere, just the prototype definition
itself, but I want to, at runtime,...
Hi there,
Is there a way to get Spring to look at some information outside the context
in order to create beans dynamically?
i.e. if I have:
<bean id="b1">
<property name="prop">
...
[Spring 2, JDK 1.5]
I'm having a fun time trying to get method-lookup, defined in a bean (B)
to work with references (a property) in bean A which uses a common
interface to multiple...
Costin,
Thanks, I'll add my vote...
Andreas,
I've seen this proposal before and It may indeed help in this matter, but what
I was after was an extension to the work that Spring is already...
All,
I've filed an RFE as per Costin's request to match this thread, and saw that
the issue was not even assigned. What's the best way to get traction on this
issue (even if it means it will not...
Costin,
Thank you for the info - I've read this section several times and it did not seem applicable to me, since I've got a lot (well, in the tens, not hundreds)
of beans that I wanted to be...
Costin,
Could you please give an example of how you'd define the same bean twice
and have one of these responsible for manufacturing instances of the other?
I'm trying to blend configuration...
I'm at a bit of a loss about trying to set up a prototype bean, specified in
the spring context and created by Spring using the empty constructor,
and then, from application code get spring to use...
Which, unfortunately, does not work - I get the following:
Exception in thread "main" org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from file...
Costin,
This is some workaround :)
anyone else seen this or has a workaround?
import path location resolution breaks if the containing application context was itself loaded using
a path that contains '..' as the first component of the path. That is, if the application...
Alan,
No, I think this time, we're both on the same page :).
This just means that the current registry design is there to stay, and it
would not benefit from using Spring. Since I'm rather a...
I'm not sure I've explained correctly (or otherwise, that I understand your
response :oops:). I suppose what I'm asking is what should I replace my
legacy code mentioned in my post with - is there...
I'm having a conceptual (?) problem with properties and injection:
I'm converting a legacy system to use spring and have done a lot of
DI using Spring to great effect, removing a lot of...
anyone?
I am confused about the usage of FactoryBeans and BeanFactories:
I am attempting to setup a singleton factory bean (really more like a registry),
which is configured with multiple prototype...
I apologize if this has been answered before.
I've run a search and could not find any matching result, but surely this
must have come up before - why can't I declare the setter methods of
bean...
Thanks for the info. I was afraid this would be the answer. Regarding your
solution, another question (or 2), if I may:
How are you modeling (or solving the problem of) relations?
How do you...
Arik,
Was this ever resolved?
I'm in the process of migrating the server side of
an existing application, and would like the Web UI aspect to remain the
same. For reasons which are not...
OK, found the right syntax. One needs to specify java.lang.Class
as the type and the actual class as the value.
Note: Spring 1.2
I'm trying to set the keys of the map as class types, but get a type
mismatch conversion exception. My bean file looks like:
<map>
<entry>
...