org.jboss.weld.environment.se.threading
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
Method Summary |
void |
run()
Set up the ThreadContet and delegate. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RunnableDecorator
public RunnableDecorator()
run
public void run()
- Set up the ThreadContet and delegate.
- Specified by:
run
in interface Runnable
Copyright © 2013 Seam Framework. All Rights Reserved.