|
The Spring Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.jca.work.DelegatingWork
public class DelegatingWork
Simple Work adapter that delegates to a given Runnable.
Work
,
Runnable
Constructor Summary | |
---|---|
DelegatingWork(Runnable delegate)
Create a new DelegatingWork. |
Method Summary | |
---|---|
Runnable |
getDelegate()
Return the wrapped Runnable implementation. |
void |
release()
This implementation is empty, since we expect the Runnable to terminate based on some specific shutdown signal. |
void |
run()
Delegates execution to the underlying Runnable. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DelegatingWork(Runnable delegate)
delegate
- the Runnable implementation to delegate toMethod Detail |
---|
public final Runnable getDelegate()
public void run()
run
in interface Runnable
public void release()
release
in interface Work
|
The Spring Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |