org.springbyexample.bean.scope.thread
Class ThreadScopeCallable<V>
java.lang.Object
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
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 |
target
protected Callable<V> target
ThreadScopeCallable
public ThreadScopeCallable(Callable<V> target)
- Constructor
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.