Search:

Type: Posts; User: Daniel Dekany; Keyword(s):

Search: Search took 0.02 seconds.

  1. The problem with the static factory method...

    The problem with the static factory method solution is simply that the users have to specifiy factory-method="something" for each bean. If you have 5-10 beans in the container, it's a PITA (longer...
  2. Well I know Spring only very roughly, so I don't...

    Well I know Spring only very roughly, so I don't see into this issue... As far as I see, the static method trick is almost the same as when you have a bean class that implements InitializingBean and...
  3. Sure, this static method trick has some...

    Sure, this static method trick has some obfuscation effect, but now really, is that a significant problem in practice, especially compared to the benefits? How many of your users (I mean application...
  4. I don't get the simile. That this proposed...

    I don't get the simile. That this proposed feature does is exactly the same as the init-method/destroy-method attributes or the BeanPostProcessor solution does, except that it happens transparently...
  5. Simply, the name and argument list of that static...

    Simply, the name and argument list of that static method could be predefined. But see in my previous post, and in the first post.



    Yes, I have considered this. It's unfortunatelly a real PITA,...
  6. My point is that it is a needless complication...

    My point is that it is a needless complication for the users of the bean classes (not for the author of the bean classes), when the author of the bean classes wants to support the Spring container...
  7. I'm talking about what will Spring users do, who...

    I'm talking about what will Spring users do, who are using the beans of my library. Everything in the library is fully configurable by setting bean properties, and it's is desigend with IoC in mind...
  8. It's not acceptable in my case. This is a...

    It's not acceptable in my case. This is a "generic library" that uses beans with init and destory methods. It needs an IoC container, and it has its own ultra-light-weight one. But if somebody uses...
  9. Classes that support Spring without requiring it?

    The Reference discourages me from using InitializingBean and like, so I don't couple my code to Spring. I agree with that intention, but then, unless I miss a Spring feature, I think Spring misses...
  10. Thanks for the answer, I believe it to you...

    Thanks for the answer, I believe it to you without further proofs, still, I would like to ask if this rule is documented somewhere, or even is a consequence of anything in the documenation? If it...
  11. Are constructor/setter arguments initialized beans?

    Is it guaranteed that when the Spring container calls the property setters or the constructor, then the objects passed in as arguments are already initialized? For example, if I have setFoo(Bar foo),...
  12. I wasn't there when that decision was made, so I...

    I wasn't there when that decision was made, so I don't know... But I think that it's bascially just matter of taste. The featuritis approach (where you want to address all imaginable usecase right in...
  13. You can nest MultiTemplateLoader-s into each...

    You can nest MultiTemplateLoader-s into each other, that should work. I have even tried it (not with Spring, but that certainly doesn't mater).
  14. Poll: The new keyword is superfluous with this syntax....

    The new keyword is superfluous with this syntax. I guess you have added it so it's more understandable for new users. I guess it doesn't worth it... there are lot of other deviations from the Java...
  15. Poll: Ops... this shortcut form was not possible when I...

    Take a closer look at the sample at the top of the page the current way of specifying this is...

    <property name="foo" value="1"/>
    [/quote]

    Ops... this shortcut form was not possible when I...
  16. Poll: Well I do have an opinion... the XML syntax is...

    Well I do have an opinion... the XML syntax is terribly verbose, so I agree very much that a specialized syntax should be added (and at least the XML scheme should be rationalized -- see later)....
Results 1 to 16 of 16