•  

Have Your Cake and Eat It Too: Meta-Programming Techniques for Java

A session at Open Source Bridge 2011

Thursday 23rd June, 2011

3:45pm to 4:30pm (PST)

Ever been envious of how easily Python, Ruby and even JavaScript can “meta-program”? Meta-programming provides new ways of writing your code that goes beyond traditional object-oriented composition or inheritance. It’s like magic: seemingly simple or innocuous code takes over big responsibilities; new methods appear out of thin air. Your code, your primary code, stays simple and easy to follow.

Now, we know you can do that for scripting languages, but what do we do about Java? With the proper context, it is possible to emulate many of those same capabilities, by applying a simple set of code transformations at runtime. In this session you’ll learn about meta-programming and how it can apply to traditional Java. You’ll learn about the techniques needed to transform classes at runtime, adding new behaviors and addressing cross-cutting concerns. The presentation will discuss a new framework for this specific purpose, but also draw examples from the Apache Tapestry web framework, which itself is rich in meta-programming constructs.

About the speaker

This person is speaking at this event.
Howard M. Lewis Ship

The man behind Apache Tapestry #tapestry5 ; Currently working in #clojure and #angularjs bio from Twitter

Coverage of this session

Sign in to add slides, notes or videos to this session

Tell your friends!

When

Time 3:45pm4:30pm PST

Date Thu 23rd June 2011

Short URL

lanyrd.com/sfrfg

Official session page

opensourcebridge.org/…ions/574

View the schedule

Share

Topics

Books by speaker

  • Tapestry in Action

See something wrong?

Report an issue with this session