Composing Traits and Declarative Validation

Scala's traits are a nice fit for JSR-303 validation. Here's an example. Suppose we have a web service interface that has methods like: @WebService trait Notification { def deleteTopic(apiKey: String, topicId: Long) def getSubscriber(apiKey: … [Continue reading]

Targeting annotations to Javabean accessors in Scala

On a recent project I had written a simple scheduling service. I wanted to expose some properties and methods to JMX so I could view the configuration at runtime and so I could perform some basic operations, like starting the service. Spring … [Continue reading]

Hello, world!

Enough futzing with themes, let's get to coding! object HelloWorld { def main(args: Array[String]) { println("Hello, world!") } } … [Continue reading]