java - Idiom for achievieng imperative wiring in a declarative Spring xml config? -


I am a user of class A, which has been given to me as a library. In my spring configuration, I specify a bean, which is instant for me to spring with pleasure, as a side effect, makes an example of A, which it is called as A.T. Displays through B (). B unveils a setC () method which I want to start with C. Which I do in the spring, how can I do this?

I have looked at the util: property-path for reference on B, but it will not let me put any material inside it. I was also watching the proxy, but there is no way to catch B and I say something to do something when I get stuck in the declarative world.

Repeat, I can not make B. It is made only as a side effect of the formation of A. I have no facility to call A STC ().

Help?

When you have non-trivial arrangements like you have described, it is usually easy to implement your own, which is your non-ben-friendly object graph. Factory Bean is inclined with all the necessary partners, and then, giving you your desired compulsory outlook.

This method is usually used to configure heritage components, which do not have IoC friendly signature, but it is equally useful to create a whole graph of the interacting object.


Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

php - jQuery AJAX Post not working -