Java Pub House

Java Pub House

By Freddy Guime & Bob PaulinTechnology
Download on the App Store

Java Pub House episodes

  • Episode 9. It's the Holidays! Let's Decorate!

    In this episode we talk about the Decorator pattern and how it is applied. We cover a couple of caveats (especially when combined with the Observer pattern) and learn how to not be afraid of its verboseness. In all, it's the season of decorating, so let's decorate!

    Questions, feedback or comments! [email protected]

    Subscribe to our podcast! ITunes link Java 7 Recipes book!

    37 min
  • Episode 8. What’s your Aspect?
    In this episode we go over Aspects (and AspectJ), what really is, and when to use them. It turns out, that there is nothing misterious about them! We also cover how to set-up Aspects for J2SE so you can start using them immediately!
    Questions,...
    36 min
  • Episode 8. What's your Aspect?

    In this episode we go over Aspects (and AspectJ), what really is, and when to use them. It turns out, that there is nothing misterious about them! We also cover how to set-up Aspects for J2SE so you can start using them immediately!

    Questions, feedback or comments! [email protected]

    VM Parameter -javaagent:dep/aspectjweaver.jar

    Example Aspect

    @Aspectpublic class OrderAspect { @Before("execution(* *.*(Order))") // must qualify public void anyCall() { System.out.println("Was called from anywhere"); }}

    Example aop.xml file

    Example Folder Structure

    src | |-META-INF | |-aop.xml

    References:

    http://www.eclipse.org/aspectj/doc/released/adk15notebook/ataspectj-pcadvice.html

    http://www.eclipse.org/aspectj/doc/next/quick5.pdf

    http://blog.espenberntsen.net/2010/03/20/aspectj-cheat-sheet/

    (Using aspects with annotations) http://stackoverflow.com/questions/2011089/aspectj-pointcut-for-all-methods-of-a-class-with-specific-annotation

    36 min
  • Episode 7. Threads, Priorities, and Swing's Golden Rule

    In this episode we talk about Threads and Threading, the difference between Daemon and User Threads, and why changing priorities is not for the weak of heart. Also we cover Swing's golden Threading rule (with the Event Dispatching Thread). If you ever typed new Thread(), or if you heard to be careful about Swing and Threading, this episode is for you!

    36 min
  • Episode 6. Observing the Observers, a talk about patterns, observer and listeners!

    In this week's podcast we talk about Design Patterns (and the Grand Dads of the Software Patterns, the Gang-of-four), and dive into our first design pattern (of many), the Observer pattern. We discussed how to implemented (within Java), and went to describe its use in Java Swing, and why anonymous inner classes for Listeners doesn't create memory leaks (most of the time anyways). In all a great introduction to a first pattern (see what they are all about!)

    36 min

About Java Pub House

From the publisher's feed

This podcast talks about how to program in Java; not your tipical system.out.println("Hello world"), but more like real issues, such as O/R setups, threading, getting certain components on the screen…