org.curjent.example.agent
Class HelloWorld

java.lang.Object
  extended by org.curjent.example.agent.HelloWorld

public class HelloWorld
extends Object

Example showing how to say "Hello World!" using an agent. It defines the agent's interface (World) and its implementation (WorldTask). When run, HelloWorld creates a new agent and calls hello. The curjent library runs the WorldTask instance on a background thread and calls the task's hello method asynchronously on that thread.


Nested Class Summary
(package private) static interface HelloWorld.World
           
(package private) static class HelloWorld.WorldTask
           
 
Constructor Summary
HelloWorld()
           
 
Method Summary
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HelloWorld

public HelloWorld()
Method Detail

main

public static void main(String[] args)
                 throws Exception
Throws:
Exception


Copyright 2009-2011 Tom Landon
Apache License 2.0