I am trying to refactor some code, so that I can inject an object from a 3rd party class into my constructor. Usually, to get an object instance of this 3rd party class, I would invoke the following code
ServiceEncryptor encryptor = com.third.party.ServiceEncryptorFactory.getInstanc e().getServiceEncryptor(null, null);
How do I invoke a method that passes two null arguments to get an instance of my object? Currently, we use Spring v1.0.2.
Thanks in advance.