Continuing the theme of new projects SpringSource would like in one post to talk about two new projects at once:
Spring Mobile &
Spring Android .
This project combines 3 things:
* These libraries are designed to develop mobile applications (but from different angles);
* Version 1.1.0.M1 - what does the very-very first version in the SpringSource language mean;
* These projects, as well as the
Spring Social discussed earlier, grew out of
GreenHouse , a project whose meaning I didn’t quite understand, but which nevertheless can serve as a good example of using a wide range of libraries from Spring Source.
So in order:
Sping mobile
The goal of the project is to simplify the development of Spring MVC applications adapted for mobile devices. So far there is not very much functionality in it - the main thing is the definition of the type of client (mobile or standard) from which the user came, which allows the use of constructions like:
Please try again<c:if test="${!currentDevice.mobile}"> or /signup" />">sign up
</ c: if>.
That is, $ {currentDevice.mobile} - the mobile version of the browser is used by the client or the standard one.
In addition, there are:
* Automatic redirect mobile clients to the mobile version of the site;
* Determining the type of device with
WURFL .
')
Sping android
The goal of the project is to simplify the development of native applications for the Android platform using the Spring Framework. So far, the project only implements RestTemplate - which allows you to communicate with an external application using the REST protocol:
RestTemplate restTemplate = new RestTemplate(new CommonsClientHttpRequestFactory());
Event event = restTemplate.getForObject("https://myapp.com/event/{name}", Event.class, "springone2gx");
In the future we plan to adapt Spring Security & OAuth.
Hmm, here I am not very aware, it seemed to me that working with REST should not be a problem in Android, but, "once the stars are lit, it means someone needs it"
In both projects, not a lot - but this is only the beginning. Read more in the developer’s blog:
Spring into Mobile Application Development