FileDocCategorySizeDatePackage
AsynchronousFacadeFieldsThreadLocalImpl.javaAPI DocJBoss 4.2.12345Fri Jul 13 21:02:30 BST 2007org.jboss.aspects.asynchronous.aspects

AsynchronousFacadeFieldsThreadLocalImpl

public class AsynchronousFacadeFieldsThreadLocalImpl extends Object implements AsynchronousFacadeFields
author
{Claude Hussenet Independent Consultant}.
version
$Revision: 57186 $

Fields Summary
private ThreadLocal
threadLocal
Constructors Summary
public AsynchronousFacadeFieldsThreadLocalImpl()


    
   

      init();

   
Methods Summary
public org.jboss.aspects.asynchronous.AsynchronousTaskgetAsynchronousTask()


      return getValue().getAsynchronousTask();

   
public java.lang.StringgetId()


      return getValue().getId();

   
public longgetTimeout()


      return getValue().getTimeout();

   
private AsynchronousFacadeFieldsgetValue()


      if (threadLocal.get() == null)

         init();

      return (AsynchronousFacadeFields) threadLocal.get();

   
private voidinit()


      threadLocal.set(new AsynchronousFacadeFieldsImpl());

   
public voidsetAsynchronousTask(org.jboss.aspects.asynchronous.AsynchronousTask asynchronousTask)


      getValue().setAsynchronousTask(asynchronousTask);

   
public voidsetId(java.lang.String id)


      getValue().setId(id);

   
public voidsetTimeout(long timeout)


      getValue().setTimeout(timeout);