CDI How do I ? - Coimbra JUG - 9JUL2015


  • Quinta-feira, 9 de Julho de 2015

    18:15
  • Departamento de Engenharia Informática - Faculdade de Ciências e Tecnologia

    Universidade de Coimbra Pólo II - Pinhal de Marrocos,Coimbra (mapa)
  • Nesta sessão teremos o prazer de contar com o António Gonçalves que nos irá fazer uma apresentação sobre CDI (Contexts & Dependency Injection).

    Abstract : "CDI How do I ?"
    In this session I'll present CDI (Context & Dependency Injection), explain most of its concepts (injection, producers, alternatives, interceptors, decorators, events...), and also show you why CDI has become the leading Java EE specification. All this with a soft blend of slides and demos (demos that work of course). CDI 2.0 being in the starting blocks, I'll end the session by giving you the roadmap of this new version.

JDK 8 Massive Open and Online Course: Lambdas and Streams Introduction

  • 14-JUL-2015 03:00:00 PM GMT
  • 4-AUG-2015 07:00:00 PM GMT
  • Java SE 8 (JDK 8) introduced a fundamentally new way of programming in Java with the introduction of Lambda expressions.
    Lambda provides a simple way to pass functionality as an argument to another method, such as what action should be taken when someone clicks a button, or how to sort a set of names. Lambda expressions enable you to do this, to treat functionality as a method argument, or code as data.
    You may have heard about Lambda expressions, and are curious what impact it will have on you as a Java developer.
    This course is designed to answer your questions and more.
    Have you ever wondered what Lambda expressions are in Java?
    Have you ever wanted to write parallel code in Java without worrying about threads and locking?
    Have you ever wanted to process collections of data without using loops?
    Have you ever wanted to do functional programming in Java?
    All of these questions will be answered in this practical hands-on MOOC. This course introduces two major new changes to the Java platform: Lambda expressions and the Stream API.
  • Free!
  • 3 weeks
  • Unlike a traditional instructor-led event, the course is delivered on-line.
    Take this course when you want, where you want, and at your own pace.
    Interact with your peers and the instructor panel through the forum.
    Each week we will post a new set of course materials:
    • A series of short, pre-recorded videos provide the "lecture" portion of the course.
    • A homework project is linked to the video material, and applies what you have learned by working with Lambdas and Streams.
    • A graded quiz evaluates how well you have grasped the materials and the homework.
  • 3 - 4 hours weekly
  • Based on successfully completing the course quizzes, you will receive a course completion award, suitable for printing and framing!
  • English
    • Apply Lambdas to everyday problems
    • Convert anonymous classes to Lambda expressions
    • Apply the Streams API to solve problems of sorting, identifying the most and least, and reducing duplicates
    • Determine when to apply Lambdas (and when not to!)
    • Use Collectors
    • Improve performance with parallel streams
    • Debug Lambda expressions


Sublime Text - Editor de Texto para Programadores


Sublime Text is a sophisticated text editor for code, markup and prose.
You'll love the slick user interface, extraordinary features and amazing performance.

Logging - Tinylog


Ease of use

import org.pmw.tinylog.Logger;
public class Application {
   public static void main(String[] args) {
      Logger.info("Hello World!");
   }
}



http://www.tinylog.org/

JBoss Forge - how to use it and extend the functionality


Instalation in Eclipse: Search for "JBoss Tools (Luna)" in Eclipse via:
Help > Eclipse Marketplace...

After instalation open Forge Console and you can create new project with:
[no project] workspace $ new-project --named my-forge-app --topLevelPackage com.example.app

create webapp
[my-forge-app] my-forge-app $ scaffold setup
[my-forge-app] my-forge-app $ persistence setup --provider HIBERNATE --container JBOSS_AS7
[my-forge-app] my-forge-app $ entity --named Person
[my-forge-app] Person.java $ field string --named firstName
[my-forge-app] Person.java $ field string --named lastName
[my-forge-app] Person.java $ field int --named age
[my-forge-app] Person.java $ scaffold from-entity

This will generate the CRUD pages for your model:
scaffold from-entity ~.model.* --scaffoldType faces --overwrite; 

More information in emiliosimoes.blogspot.pt or JBoss Forge tutorial


Instalation in NetBeans

 

Powered by Blogger