Why URLConnectionTransport is not public class?

May 16, 2011 at 4:23 AM
Edited May 16, 2011 at 4:24 AM

Our project uses Spring Framework extensively and I am using Spring to inject the Authenticators instead of using the ConnectionFactory and ApplicationConfig.  

ConnectionFactory has code that create URLConnectionTransport objects. I can not create an instance of URLConnectionTransport outside of your sdk package because it is declared in package scope "class URLConnectionTransport", not "public class URLConnectionTransport".

Any reason why this class is not public? I would like to be able to create objects of this class outside of the sdk and use spring injected attributes rather than ApplicationConfig. Please let me know if URLConnectionTransport could be a public class and if not, why?

Thanks in advance,


May 17, 2011 at 3:47 PM

Yes, it should be public.  Injecting with Spring is the right thing to do.  I've been doing something similar on other projects.  I will be making another point release soon and will include this change.