Results 1 to 4 of 4

Thread: Why port spring-framework, instead of including the pre-existing jars?

  1. #1
    Join Date
    May 2012
    Posts
    10

    Default Why port spring-framework, instead of including the pre-existing jars?

    I understand this seems like very obvious a question. Still, I don't get it right now, so sorry ...

    What I wonder is: why make the effort and port some functionality that is existing in spring-framework already?
    Are there certain calls / methods which are simply not supported on Android?
    Apparently, the same thing works for spring-social, so why not for 'core' as well?

    In an attempt of finding out myself, I just included spring-framework into one of my Android apps, which seems to work seamlessly, but confuses me even more.

    Thanks in advance.

  2. #2
    Join Date
    Nov 2010
    Posts
    174

    Default

    It's possible things will work, depending on which version of android on which you are running. However, Spring Framework was obviously not designed with that in mind. There are a number of classes and methods that are not available in Android, particularly older versions. The javax.xml package specifically comes to mind. Spring OXM isn't compatible, so we introduced support for the Simple XML library. The Http Components client was not available in Spring Framework when Spring Android was first released. Spring Framework now has support for the 4.1 client, but Android is still running on a version of 4.0, and there are some differences in the API. The Android team is progressing the standard J2SE facilities, but there are some features/bugs in Android that had to be addressed. Spring Framework does not support gzip encoding, which Spring for Android does. Lastly the dependency tree for Spring Framework can be quite large, and we wanted to eliminate as much of that as possible for use on Android, because many Android developers are not using Maven. This is just what I'm recalling quickly, so this list is not exhaustive. Hope that helps.
    Roy Clarkson
    Spring Mobile Projects Lead

  3. #3
    Join Date
    Nov 2010
    Posts
    174

    Default

    To speak to Spring Social directly, since you mentioned that. Craig Walls (Spring Social project lead) and I spent a lot of time testing and addressing compatibility on Android. This was by design, because we saw the value in supporting spring social on Android.
    Roy Clarkson
    Spring Mobile Projects Lead

  4. #4
    Join Date
    May 2012
    Posts
    10

    Default

    Interesting and helpful answer - thank you very much.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •