@Component public class MySpringContext extends Object implements org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.DisposableBean
| Constructor and Description |
|---|
MySpringContext() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
static String |
enCaptureName(String name) |
static org.springframework.context.ApplicationContext |
getApplicationContext() |
<T> T |
getBean(Class<T> clazz) |
static <T> T |
getBean(String name) |
void |
refresh(Class clazz) |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
public static org.springframework.context.ApplicationContext getApplicationContext()
public static <T> T getBean(String name)
public <T> T getBean(Class<T> clazz)
public void destroy()
throws Exception
destroy in interface org.springframework.beans.factory.DisposableBeanExceptionpublic void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionpublic void refresh(Class clazz)
Copyright © 2020. All rights reserved.