Class RunnableDecorator

  • All Implemented Interfaces:
    Runnable

    @Decorator
    public class RunnableDecorator
    extends Object
    implements Runnable
    Decorator for all beans which implements Runnable. It intercepts the call to the run() method to set up the ThreadContext for the new thread so that instances of @ThreadScoped beans can be correctly resolved.
    Author:
    Peter Royle
    • Method Detail

      • run

        public void run()
        Set up the ThreadContext and delegate.
        Specified by:
        run in interface Runnable