How to use Spring DI in class constructed by another framework (using new)?
问题 I am doing some work on a legacy SOAP app which uses Axis2 . I would like to introduce some basic Spring injection. The app has an Axis2 service config that specifies: <ramp:RampartConfig xmlns:ramp="http://ws.apache.org/rampart/policy"> <ramp:timestampTTL>300</ramp:timestampTTL> <ramp:timestampMaxSkew>300</ramp:timestampMaxSkew> <ramp:user>service</ramp:user> <ramp:encryptionUser>useReqSigCert</ramp:encryptionUser> <ramp:passwordCallbackClass> com.myapp.SomeCallbackHandler </ramp