Package com.avoka.fc.core.util
Class SpringContextProvider
java.lang.Object
com.avoka.fc.core.util.SpringContextProvider
Provide a thread local Spring ApplicationContext.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.springframework.context.ApplicationContext
static void
Remote the thread local application context variable.static void
setThreadApplicationContext
(org.springframework.context.ApplicationContext applicationContext)
-
Constructor Details
-
SpringContextProvider
public SpringContextProvider()
-
-
Method Details
-
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.
-