In Groovy we can invoke an implicit call() method on a Groovy object. We can leave out the call method name and just use (). We can use meta programming to add an implementation for the call() method to a class. In the following example script we add an implementation for the call() method with a single parameter to the String class. The implementation returns the element found at the range specif
This screencast demonstrates how to use Spock testing specifications and Groovy for mocking and stubbing behavior in unit tests. It covers creating the mock object syntax, setting expectations, verifying and spying on results, and argument matchers. If you have any issues with video playback, then trying viewing it from the JBrains.tv website Here are some useful links to read for this webcast: Sp
Two weeks ago I did a little tour around several JUGs and conferences to talk about dependency injections with CDI. The final goal of this road movie was to end up at GeeCon in Krakow. It was my second time at GeeCon and I have to say that this conference is like good wine : getting better with age. This community based conference is on its third edition and attracts people through out central and
DCI (Data Context Interaction) is a new way to look at object oriented programming. If you’d like to read some theory to see the difference between DCI and traditional OOP there is a nice article coverting the topic: http://www.artima.com/articles/dci_vision.htmlAnd this presentation can be very helpful too: http://www.infoq.com/presentations/The-DCI-ArchitectureIn this post I’d like to show one s
One of the many cool sample applications known to those trying out JavaFX is the JavaFX Weather application, which is now bundled with the NetBeans IDE 6.5.1/JavaFX 1.2 bundle. In short, it connects to a weather service and then displays the results for selected cities in an impressive JavaFX GUI: In a technical session at JavaOne on Wednesday, entitled "JavaFX Programming Language + Groovy = Beau
JDK6 introduced great but probably not too widely known possibility of embedding lightweight http server in to your application. If you are not aware about it as I was here is the link for javadocs of simple and nice API Of course, several great options for embedded http server (servlet container usually) existed before. Jetty was my favorite for a long time. The biggest difference is that JDK giv
Several weeks ago we've talked about lock free message passing algorithms with Groovy++ and provided implementation of actors similar to the ones in Scala or Erlang but faster. Today we will use same technique to implement similar but different concept from Clojure called agents. You can find source code and more examples in the Groovy++ distro So what is agent? Probably the best source is Clojure
This week Hudson creator Kohsuke Kawaguchi introduced his new startup, InfraDNA, which provides support and consulting for the Hudson Continuous Integration system. After nine years of employment, Kawaguchi left Oracle earlier this month in order to start his new business. In his blog, he explains how chose the name for his company: "The name of the company is InfraDNA because I think of Hudson m
Over the past several months, I’ve written quite a few blog entries about OSGi. Here’s a recap of those entries. If you’re not familar with OSGi, the posts under How OSGi might be of interest. If you’re familar with OSGi, but aren’t clear how it can help, the posts under Why OSGi will be of interest. And if you want to get a sense for where OSGi stands in the market today, the posts under OSGi Mar
Grails scaffolding works great out of the box. Today I want to see how we can improve adding data to the many side of a one-to-many relationship using jQuery, jQueryUI's Dialog, and some Ajax. Using the same domain objects as my previous article I want to show how we can add Reminders to an Event without needing to navigate to a new page, assuming it is ok to create events without reminders. Fo
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く