vendredi 2 décembre 2011

Veille technologique semaine 48

Pour le bulletin de cette semaine, je vous propose les sujets suivants :

  • Une synthèse de JavaOne qui s'est tenue début octobre à San Francisco.
  • JavaFX 2.0 est sortie en version finale.
  • JavaFX l'avenir du client en Java ?
  • JavaFX et NetBeans 7.1
  • JavaFX et les charts
  • Les premières informations au sujet du JDK 9, mentionnée à la conférence Devoxx.
  • Les fonctionnalités du JDK 7 : un résumé.
  • Les expressions lambda pour le JDK 8.
  • Les énuméré en Java.
Bonne lecture.




JavaOne
La conférence JavaOne 2011 s’est tenue la semaine passée à San Francisco. Comme chaque année, elle a été l’occasion d’un grand nombre d’annonces, de keynotes et de plans sur le futur de Java. On notera après avoir pris la température auprès de la communauté, que celle-ci semble moins inquiète que dans un récent passé: Oracle est là depuis un moment maintenant, les choses semblent s’être stabilisées et clarifiées. La récente arrivée de Java 7 ne doit pas y être pour rien. Parmi les diverses annonces, on retiendra surtout :

  • Java 8 est retardé à début 2013. Nous aurons le temps de vous reparler des nouveaux apports.
  • Java ME tend à se rapprocher de Java SE et vise à en devenir un sous ensemble. L’intérêt est d’unifier les communautés de ces 2 versions.
  • Java EE 7 est en préparation, orienté Cloud et multi-tenancy
  • JavaFX n’est pas mort. Les mauvaises langues diront que le projet ressort du placard chaque année pour JavaOne. Mais Oracle semble décidé à le faire avancer: il devrait progressivement devenir complètement OpenSource et une version 3 est prévue, intégrée directement dans le JDK 8.
  • Pour rêver un peu, quelques pistes pour le JDK 9 ont été évoquées. On parle de VM s’adaptant toutes seules aux applications (plus de XmX et autres barbaries ?!), d’un nouveau Meta Object Protocol améliorant le support entre langages… Là encore, nous aurons laaaargement le temps d’en reparler !
 
JavaFX 2.0 Released, Java 9 Outlined During JavaOne Keynote
Mark Reinhold, Chief Architect for Java at Oracle, gave details of developments in Java 8 and beyond, and announced the GA release of JavaFX 2.0 during his keynote session at the JavaOne conference in San Francisco.

The two big themes for Java 8 are modularity via Jigsaw, and project Lambda. Discussing Jigsaw, Mark Reinhold emphasized the need for seamless integration between it and OSGi. IBM is collaborating on this work via OpenJDK, and indeed the first project that IBM will set up within the OpenJDK will look to explore and demonstrate working interoperability between the two modularity frameworks.



L’avenir des clients Java passera par JavaFX
Durant la dernière conférence JavaOne 2011, Oracle a dévoilé sa stratégie concernant les applications clientes Java. Sans surprise, Oracle mise sur JavaFX.
Pour rappel, JavaFX est une API pour développer des RIA (desktop ou mobile), apparue il y a quelques années, mais qui n’a pas rencontré le succès escompté. Face à cet échec, une nouvelle version 2.0 de JavaFX a été présentée à la conférence JavaOne 2010.



Oracle Sets Out Two Year Plan for Client-side Java
Given that Oracle is predominantly focused on enterprise software, it has been tempting to assume that the vendor would largely ignore client-side Java. It became clear at JavaOne this year, however, that Oracle is making a renewed push on the desktop, spearheaded by JavaFX. It will also be open-sourcing the entire JavaFX platform via OpenJDK.



Hello JavaFX 2.0: Introduction by NetBeans 7.1 beta
 
Over the years since the 2007 JavaOne announcement of JavaFX, I have been somewhat critical of what it has to offer. After Oracle's announcement at JavaOne 2010 that JavaFX would abandon the proprietary JavaFX Script and instead support standard Java APIs, I began to wonder [8] if it was time to invest in learning JavaFX. With the JavaOne 2011 announcements [9] that Oracle intends to pursue standardization of JavaFX as part of Java SE and to open source JavaFX, it is now an easy decision to invest time and energy into learning JavaFX 2.0. In this post, I publicly begin that process. The last couple times I looked at JavaFX, I stopped after feeling disillusioned and resentful. I am expecting better results this time.



Using JavaFX Charts

This tutorial describes the graphical charts available in the javafx.scene.chart package of the JavaFX SDK and contains the following chapters:
  • Introduction to JavaFX Charts
  • Pie Chart
  • Line Chart
  • Area Chart
  • Bubble Chart
  • Scatter Chart
  • Bar Chart
Each chapter provides code samples and applications to illustrate how to use a particular chart. You can find the source files of the applications and the corresponding NetBeans projects in the Application Files.



Premières infos sur Java 9 à Devoxx ?
Il semblerait que la conférence Devoxx nous ait apporté quelques informations concernant les lignes directives de Java 9.

On devrait y retrouver les reified generics et l'unification des primitives.






The 55 New Java 7 Features You (Probably) Didn't Hear About
Slides from deck presented at EclipseConEurope 2011, on November 2ndin Ludwigsburg, Germany.



Les lambda expressions dans Java 8
Durant cet été, l’actuel architecte de Java auprès d’Oracle, Brian Goetz, a fourni des informations intéressantes sur l’implémentation des lambda expressions dans le futur Java 8 et de ses conséquences sur le langage. Par lambda expression comprenez ici closure ou fonction anonyme, qu’il est possible de stocker dans une variable ou de retourner depuis une méthode ou depuis une autre fonction, et bien sûr d’appeler. L’intégration des lambda expressions se fait dans le cadre de la JSR 335 (JSR 335: Lambda Expressions for the Java Programming Language), aussi appelé Lambda Project.




Java Lambda Syntax based on C#, Scala 
One of the most anticipated new features of Java 8 is the introduction of Lambdas, which are anonymous functions that can be passed around like data in arguments and variables. However, the syntax for these wasn't widely decided, with polls asking for input on what would be most familiar to others. A recent posting on the lambda-dev mailing list announced the conclusion that the Java Lambda syntax will be based on C# syntax. This is already widely known and used (as C# had delegates back in 1.0, support for delegate functions in 2.0 and lambda expressions in 3.0).



Java Enum Tutorial: 10 Examples of Enum in Java
Enumeration (Enum) in Java was introduced in JDK 1.5 and it is one of my favorite features of J2SE 5. Java Enum as type is more suitable on certain cases for example representing state of Order as NEW, PARTIAL FILL, FILL or CLOSED.