org.springbyexample.bean.scope.thread
Class ThreadScopeCallable<V>

java.lang.Object
  extended by org.springbyexample.bean.scope.thread.ThreadScopeCallable<V>
All Implemented Interfaces:
Callable<V>

public class ThreadScopeCallable<V>
extends Object
implements Callable<V>

Thread scope Callable meant to be used with a thread executor. Cached thread scope beans are cleared and bean destruction callbacks are run after the Callable finishes.

Author:
David Winterfeldt

Field Summary
protected  Callable<V> target
           
 
Constructor Summary
ThreadScopeCallable(Callable<V> target)
          Constructor
 
Method Summary
 V call()
          Runs Runnable target and then afterword processes thread scope destruction callbacks.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

target

protected Callable<V> target
Constructor Detail

ThreadScopeCallable

public ThreadScopeCallable(Callable<V> target)
Constructor

Method Detail

call

public V call()
       throws Exception
Runs Runnable target and then afterword processes thread scope destruction callbacks.

Specified by:
call in interface Callable<V>
Throws:
Exception


Copyright © 2008-2012 Spring by Example. All Rights Reserved.