Extending spring's default component factory -


It is a small one: I want to try to change the spring which transforms my beans (this case Instead, instead of instantiating it by creating a proxy)

I can not use the JDK dynamic proxy nor the cglib to build the proxy (if this was the case, I could use spring ).

In my opinion, the best way to do this is to expand the spring plant of spring (and tell spring to use my factory), but I do not know how to do this on Google.

Any thoughts about this? Edit:

Actually, the most standard way of doing this is to use a Bean Post Processor (), and wrap that postprocessor. Bean on a proxy

If we can not get a better solution around here (and we decide that this is a valuable question), then I will post it as an answer.

The way to go is to implement a Bean Post Processor (), and to ensure that beeppost Process wrap the beans on a proxy, on 'Post ProcessbapperInnisation'.


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -