Package com.bytedesk.core.utils
Class ApplicationContextHolder
java.lang.Object
com.bytedesk.core.utils.ApplicationContextHolder
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
public class ApplicationContextHolder
extends Object
implements org.springframework.context.ApplicationContextAware
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static org.springframework.context.ApplicationContext
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> T
void
setApplicationContext
(org.springframework.context.ApplicationContext applicationContext)
-
Field Details
-
context
private static org.springframework.context.ApplicationContext context
-
-
Constructor Details
-
ApplicationContextHolder
public ApplicationContextHolder()
-
-
Method Details
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException - Specified by:
setApplicationContext
in interfaceorg.springframework.context.ApplicationContextAware
- Throws:
org.springframework.beans.BeansException
-
getBean
-