Package com.avoka.fc.core.util
Class SpringContextProvider
- java.lang.Object
-
- com.avoka.fc.core.util.SpringContextProvider
-
public class SpringContextProvider extends Object
Provide a thread local Spring ApplicationContext.
-
-
Constructor Summary
Constructors Constructor Description SpringContextProvider()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.springframework.context.ApplicationContext
getThreadApplicationContext()
static void
removeThreadApplicationContext()
Remote the thread local application context variable.static void
setThreadApplicationContext(org.springframework.context.ApplicationContext applicationContext)
-
-
-
Method Detail
-
getThreadApplicationContext
public static org.springframework.context.ApplicationContext getThreadApplicationContext()
- Returns:
- the thread local Spring Application Context.
-
setThreadApplicationContext
public static void setThreadApplicationContext(org.springframework.context.ApplicationContext applicationContext)
- Parameters:
applicationContext
- the thread local Spring Application Context to set
-
removeThreadApplicationContext
public static void removeThreadApplicationContext()
Remote the thread local application context variable.
-
-