mercredi 1 avril 2020

How to modify bean knowing proxy name

I'm adding my own scope to Spring. And I have to implement Serializable in every bean in this scope, beans not guarantee they will implement it, so, my question is, how to knowing a name of proxy(string) get a bean, make it implement Serializable through reflection API and put new class with proxy to context?

I read a few answers about implementation, but, as I understood, it does not suit my approach. Because they just take an interface and implement it, not a class.





Aucun commentaire:

Enregistrer un commentaire