Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

MethodInvokingRunnable Class

Adapter that implements the Runnable interface as a configurable method invocation based on Spring's MethodInvoker.

For a list of all members of this type, see MethodInvokingRunnable Members .

System.Object
   MethodInvoker
      ArgumentConvertingMethodInvoker
         MethodInvokingRunnable

[Visual Basic]
Public Class MethodInvokingRunnable
    Inherits ArgumentConvertingMethodInvoker
    Implements IInitializingObject, IThreadRunnable
[C#]
public class MethodInvokingRunnable : ArgumentConvertingMethodInvoker, IInitializingObject, IThreadRunnable

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Remarks

Derives from ArgumentConvertingMethodInvoker, inheriting common configuration properties from MethodInvoker.

Useful to generically encapsulate a method invocation as timer task for

java.util.Timer
, in combination with a DelegatingTimerTask adapter. Can also be used with JDK 1.5's
java.util.concurrent.Executor
abstraction, which works with plain Runnables.

Extended by Spring's MethodInvokingTimerTaskFactoryObject adapter for

TimerTask
. Note that you can populate a ScheduledTimerTask object with a plain MethodInvokingRunnable instance as well, which will automatically get wrapped with a DelegatingTimerTask.

Requirements

Namespace: Spring.Scheduling.Quartz

Assembly: Spring.Scheduling.Quartz (in Spring.Scheduling.Quartz.dll)

See Also

MethodInvokingRunnable Members | Spring.Scheduling.Quartz Namespace | MethodInvoker | ArgumentConvertingMethodInvoker