public class

DelegatingWork

extends Object
java.lang.Object
   ↳ org.springframework.jca.work.DelegatingWork

Class Overview

Simple Work adapter that delegates to a given Runnable.

See Also

Summary

Public Constructors
DelegatingWork(Runnable delegate)
Create a new DelegatingWork.
Public Methods
final 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.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public DelegatingWork (Runnable delegate)

Create a new DelegatingWork.

Parameters
delegate the Runnable implementation to delegate to

Public Methods

public final Runnable getDelegate ()

Return the wrapped Runnable implementation.

public void release ()

This implementation is empty, since we expect the Runnable to terminate based on some specific shutdown signal.

public void run ()

Delegates execution to the underlying Runnable.