vendredi 10 juillet 2015

How to auto register spring beans using reflection

My application consists of 2 modules, I have some classes under module-B, what I want is to dynamically load jar of module-Bin module-A and register those classes as beans in context of module-A.

I don't have any context under module-B, so loading context of module-B in my parent module-A is not an option for me.

What I have tried so far:

JCL , but I am unable to figure out how should I register those beans.

What am I missing ? Is there a better way to do it without creating contexts in child module and loading them in parent.





Aucun commentaire:

Enregistrer un commentaire