org.ikasan.framework.component.transformation
Class ThreadLocalBeansWrapper

java.lang.Object
  extended by org.ikasan.framework.component.transformation.ThreadLocalBeansWrapper

public class ThreadLocalBeansWrapper
extends Object

A wrapper class that provides static access to a ThreadLocal controlled map of beans Threads that call setBeans should later be able to call getBeans to retireve the same map of beans, regardless of what any other thread may do in the meantime

Author:
Ikasan Development Team

Constructor Summary
ThreadLocalBeansWrapper()
           
 
Method Summary
static Map<String,Object> getBeans()
          Provides access to beans previously set by this thread
static void remove()
          Clears the threadlocal
static void setBeans(Map<String,Object> beans)
          Allows the current thread to set its own private beans for later retrieval
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThreadLocalBeansWrapper

public ThreadLocalBeansWrapper()
Method Detail

getBeans

public static Map<String,Object> getBeans()
Provides access to beans previously set by this thread

Returns:
Map of named java beans

setBeans

public static void setBeans(Map<String,Object> beans)
Allows the current thread to set its own private beans for later retrieval

Parameters:
beans - Map of named java beans

remove

public static void remove()
Clears the threadlocal



Copyright © 2007-2012 Ikasan. All Rights Reserved.