Better application events in Spring Framework 4.2

Engineering | Stéphane Nicoll | February 11, 2015 | ...

Application events are available since the very beginning of the Spring framework as a mean for loosely coupled components to exchange information. One of the most well known usage of application events is the following:

@Component
public class MyListener 
        implements ApplicationListener<ContextRefreshedEvent> {
  
    public void onApplicationEvent(ContextRefreshedEvent event) {
        ...
    }
}

This allows MyListener to be notified when the context has refreshed and one can use that to run arbitrary code when the application context has fully started.

In Spring Framework…

SpringOne2GX 2014 Replay: Rethinking API Design with Traits

News | Pieter Humphrey | February 10, 2015 | ...

Recorded at SpringOne2GX 2014.

Speaker: Cédric Champeau

More Groovy Track

Slides: http://www.slideshare.net/SpringCentral/traits-design

Groovy 2.3 introduces the concept of traits in the language. Traits look like interfaces, but allow the developer to add both implementation and state into it. It introduces multiple inheritance in the language while avoiding the diamond problem. Traits will let you rethink the way you design APIs in Groovy, by favoriting composition of behaviors.

SpringOne2GX 2014 Replay: Ratpack Web Framework

Engineering | Pieter Humphrey | February 10, 2015 | ...

Recorded at SpringOne2GX 2014.

Speaker: Dan Woods, NetFlix

G&G Special Topics

Slides: http://www.slideshare.net/SpringCentral/4pieter-springone2gx2014ratpack

Ratpack is an asynchronous web framework for the JVM that was inspired by the simplistic nature of Ruby's Sinatra framework. Written in Java, optimized for Groovy and Java 8, Ratpack sports a high throughput, simplistic interface for rapid development of rich, real-time web applications.

Introducing JHipster

Engineering | Josh Long | February 10, 2015 | ...

This post is a guest post by community member Julien Dubois (@juliendubois), a former SpringSource employee who now works for Ippon Technologies and is creator of the JHipster project. Thanks Julien! I'd like to see more of these guest posts, so - as usual - don't hesitate to ping me (@starbuxman)! -Josh


the JHipster

Introduction

JHipster, or "Java Hipster," is a handy application generator that will create for you a Spring Boot (that's the Java part) and AngularJS (that's the hipster part) application.

In a very short amount of time, JHipster has became very popular on Github, and it has been featured on online magazines - like InfoQ, Infoworld or SD Times - and in conferences all over the world - Paris, London, Montreal…

This Week in Spring - February 10th, 2015

Engineering | Josh Long | February 10, 2015 | ...

Welcome to another installment of This Week in Spring!

If you're in the bay area this week, I'll be speaking at the Netflix OSS meetup in Los Altos talking about Spring Cloud on Wednesday and at Pivotal San Francisco's Open-Source Hub on the amazing Spring Session project on Thursday. I hope you'll join me for either or both! It's sure to be fun!

As usual, we've got a lot to cover, so let's get to it!

  1. My pal (and Spring Boot co-founder!) Phil Webb and I gave the introduction to Spring Boot lesson at SpringOne2GX 2014 - check it out! Hopefully you'll have as much fun as we did! :)
  2. DZone have published two nice Developers of the Week profiles, one for the good Dr. Dave Syer and one for Spring Batch lead Michael Minella
  3. Adib Saikali put together a really nice article on InfoQ introducing the ways that Java 8 and Spring 4 win.
  4. Readers of this roundup will know that I love me some JHipster, and so I am super excited to have JHipster founder Julien Dubois

Webinar Replay: Documenting REST-ful APIs

News | Pieter Humphrey | February 10, 2015 | ...

Speaker: Andy Wilkinson

An API's documentation is a vital part of making it easy to understand and easy to use. RESTful APIs are no different. In this webinar we'll look at what should be included in your RESTful API's documentation and, just as importantly, what should be omitted. To illustrate this we'll look at some real-world examples of good and bad API documentation. We'll look at some of the problems and limitations of choosing a tool like Swagger to produce your API's documentation and conclude by looking at some alternatives that are better-suited to producing documentation that your users will love.

Learn more about Spring MVC http://projects.spring.io/spring-framework

Learn more about Spring REST Docs https://github.com/wilkinsona/spring-restdocs

Webinar Replay: Introducing the Java DSL for Spring Integration

News | Pieter Humphrey | February 10, 2015 | ...

Webinar: Introducing the Java DSL for Spring Integration

Speaker: Gary Russell

Slides: https://speakerdeck.com/garyrussell/spring-integration-java-dsl-a-deeper-dive

The Spring Integration JavaConfig and DSL extension provides a set of convenient Builders and a fluent API to configure Spring Integration message flows from Spring @Configuration classes. The Java DSL for Spring Integration is essentially a facade for Spring Integration. The DSL provides a simple way to embed Spring Integration Message Flows into your application using the fluent Builder pattern together with existing Java and Annotation configurations from Spring Framework and Spring Integration as well. Another useful tool to simplify configuration is Java 8 Lambdas.

Learn more about Spring Integration: http://projects.spring.io/spring-integration

Learn more about Spring XD: http://projects.spring.io/spring-xd

SpringOne2GX 2014 Replay: Building a Continuous Delivery Pipeline with Gradle and Jenkins

Engineering | Pieter Humphrey | February 10, 2015 | ...

Recorded at SpringOne2GX 2014.

Speaker: Peter Niederwieser

G&G Special Topics

Slides: http://www.slideshare.net/SpringCentral/continuous-delivery-with-gradle-and-jenkins

Getting software from a developer's machine to a production environment without a fully automated process is time-consuming and error-prone. Continuous Delivery enables building, testing and deploying of software through build pipelines with well-defined quality gates. In this session, we will discuss how to build such a pipeline with the help of Gradle and Jenkins. With Jenkins as the centerpiece of our build pipeline, we will model our way from build to deployment. We will start by introducing an examplary application and learn how to build it with Gradle. Step by step, we will touch on topics like automating unit, integration and functional tests, incorporating popular code quality tools, as well as packaging, publishing and deploying the deliverable.

SpringOne2GX 2014 Replay: Testing Grails

News | Pieter Humphrey | February 10, 2015 | ...

Recorded at SpringOne2GX 2014.

Speaker: Kenneth Kousen

Essential Grails Track

Slides: http://www.slideshare.net/SpringCentral/testing-grails

Grails comes with extensive testing support, ranging from unit to integration to functional tests. This session will demonstrate the range of options available both natively and through testing plugins. Prerequisite: Some knowledge of Grails would be helpful but not assumed.

Get the Spring newsletter

Stay connected with the Spring newsletter

Subscribe

Get ahead

VMware offers training and certification to turbo-charge your progress.

Learn more

Get support

Tanzu Spring offers support and binaries for OpenJDK™, Spring, and Apache Tomcat® in one simple subscription.

Learn more

Upcoming events

Check out all the upcoming events in the Spring community.

View all