adam bien's blog

Modular Java EE Workshops--Interview, Podcast and A Compilable Agenda 📎

I was interviewed @DZone about Java EE Workshops at Munich's airport "AirHacks". Tinu Awopetu also asked me some questions about the Java EE Workshops, history, agenda and the attendees for the NetBeans podcast.

The workshop agenda is compilable and should be easy comprehensible after attending the first day (bootstrap):

package com.airhacks.boundary;

import java.util.List;
import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;
import javax.ejb.Schedule;
import javax.enterprise.event.Event;
import javax.inject.Inject;
import javax.interceptor.Interceptors;

@Interceptors(EsotericDiscussionPreventer.class)
@JavaEE
public class AirhacksWorkshop {

    @Inject @AdamBien
    Instructor instructor;
    @Inject
    Laptop laptop;
    @Inject
    Attendee attendee;
    @Inject
    Event<TShirt> tshirts;

    @PostConstruct
    public void onArrival() {
        attendee.go200meters();
        laptop.oneClickInstall();
        instructor.askQuestions();
    }

    @Schedule(hour = "9 AM")
    public void collectiveCoding() {
        instructor.explain();
        instructor.code();
        instructor.explain();
        instructor.deploy();
        List<Question> questions = instructor.askForQuestions();
        for (Question question : questions) {
            question.answer();
            if (question.isConstructive() || question.isHeretical()) {
                this.tshirts.fire(question.toAttendee());
            }
        }
    }

    @PreDestroy
    public void on5PM() {
        instructor.answersRemainingQuestions();
        attendee.flyHome();
        attendee.digestCode();
        attendee.registerForNextSlot();
    }
}

In addition the agenda is going to be persisted on the back of some t-shirts: so prepare some questions.