Package org.springframework.jca.work
Class DelegatingWork
- java.lang.Object
- org.springframework.jca.work.DelegatingWork
Constructor Summary
Constructors Constructor Description DelegatingWork(Runnable delegate)
Create a new DelegatingWork.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.
Constructor Detail
DelegatingWork
public DelegatingWork(Runnable delegate)
Create a new DelegatingWork.- Parameters:
delegate
- the Runnable implementation to delegate to
Method Detail
getDelegate
public final Runnable getDelegate()
Return the wrapped Runnable implementation.
run
public void run()
Delegates execution to the underlying Runnable.