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
Posted on March 25, 2012 Written by Leave a Comment
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!
Posted on March 24, 2012 Written by Leave a Comment
Enough futzing with themes, let's get to coding! object HelloWorld { def main(args: Array[String]) { println("Hello, world!") } } … [Continue reading]