spin.demo.async
Class AsyncBeanImpl

java.lang.Object
  extended by spin.demo.async.AsyncBeanImpl
All Implemented Interfaces:
java.lang.Runnable, AsyncBean

public class AsyncBeanImpl
extends java.lang.Object
implements AsyncBean, java.lang.Runnable

Implementation of an async bean.


Constructor Summary
AsyncBeanImpl()
           
 
Method Summary
 void addListener(AsyncListener listener)
          Add a listener.
 void run()
           
 void start()
          Start this bean in an asynchron thread.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AsyncBeanImpl

public AsyncBeanImpl()
Method Detail

addListener

public void addListener(AsyncListener listener)
Add a listener.

Specified by:
addListener in interface AsyncBean
Parameters:
listener - listener to add

start

public void start()
Start this bean in an asynchron thread.

Specified by:
start in interface AsyncBean

run

public void run()
Specified by:
run in interface java.lang.Runnable
See Also:
Runnable


Copyright © 2007. All Rights Reserved.