Skip to content
  • Home
  • Blog
  • Talks
  • Projects
  • Contact

spiros.blog()

Spiros Tzavellas’s blog, mostly on software development and Java.

Making Guice more Scala friendly

Guice might be one of the few libraries that is easier to use in Java than it is in Scala. The main reason for this is the absence of class literals in Scala. Instead of writing Service.class in Scala we write classOf[Service] which is longer and less readable. To illustrate this lets compare two Guice […]

continue reading Making Guice more Scala friendly

Using self types for trait composition

While using traits in a small Scala project, I finally understood when to use self types. Self types are often characterized by Scala newbies as an incomprehensible language feature with no obvious usage. After coding with traits for a while I understood that self types are an essential information hiding tool for composing traits. I […]

continue reading Using self types for trait composition

Statically weaving JPA entities for EclipseLink using Maven

EclipseLink provides advanced JPA features such as lazy-loading, change tracking and fetch groups using bytecode weaving. To use bytecode weaving you can either dynamically instrument your entity classes at runtime (via a jvm agent) or use a tool to statically process the .class files after compilation. In this post we will present how to use […]

continue reading Statically weaving JPA entities for EclipseLink using Maven

Seattle Conference on Scalability

Finally, the talks from the Google’s scalability conference are available online.

continue reading Seattle Conference on Scalability

Using Dependency Injection in Struts2 for stateless EJBs part 2

This is the second, and last part of the Using Dependency Injection in Struts2 for stateless EJBs series of posts. In this post I will present a utility class that can be used to make the creation of Guice bindings for EJB3s easier. Introducing EjbBinder Our goal is to make an easier API, specifically for […]

continue reading Using Dependency Injection in Struts2 for stateless EJBs part 2

Post navigation

Older posts →
← Newer posts
Proudly powered by WordPress | Theme: Aventurine by Kelly Dwan & Mel Choyce.