为说明这些概念,请看一个在两个客户端之间使用XMPP进行IM通信的简单示例。
To illustrate these concepts, look at a simple example of an im communication using XMPP between two clients.
请看清单4中,Groovy替我处理底层资源,从而非常漂亮地让我把注意力集中在手边的任务——执行一个简单的查询。
Watch how Groovy elegantly lets me focus on the task at hand — performing a simple query — and handles the underlying resource handling for me in Listing 4.
在查看Geronimo以及它的DI实现方式之前,请看一个更简单的容器。
Before looking at Geronimo and how it implements DI, take a look at a simpler container.
应用推荐