Class RunnableDecorator

java.lang.Object
org.jboss.weld.environment.se.threading.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
  • Constructor Details

  • Method Details

    • run

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