public class SpringAware extends Object implements org.springframework.context.ApplicationContextAware, ContextAware
| 构造器和说明 |
|---|
SpringAware() |
| 限定符和类型 | 方法和说明 |
|---|---|
static org.springframework.context.ApplicationContext |
getApplicationContext() |
<T> T |
getBean(Class<T> clazz) |
<T> T |
getBean(String name) |
<T> Map<String,T> |
getBeansOfType(Class<T> type) |
boolean |
hasBean(String beanName) |
int |
priority() |
<T> T |
registerBean(Class<T> c) |
<T> T |
registerBean(String beanName,
Class<T> c) |
<T> T |
registerBean(String beanName,
Object bean) |
Object |
registerDeclWrapBean(String beanName,
DeclWarpBean declWarpBean) |
<T> T |
registerOrGet(String beanName,
Class<T> clazz) |
void |
setApplicationContext(org.springframework.context.ApplicationContext ac) |
public void setApplicationContext(org.springframework.context.ApplicationContext ac)
throws org.springframework.beans.BeansException
setApplicationContext 在接口中 org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionpublic static org.springframework.context.ApplicationContext getApplicationContext()
public <T> T getBean(String name)
getBean 在接口中 ContextAwarepublic <T> Map<String,T> getBeansOfType(Class<T> type)
getBeansOfType 在接口中 ContextAwarepublic <T> T getBean(Class<T> clazz)
getBean 在接口中 ContextAwarepublic <T> T registerBean(String beanName, Class<T> c)
registerBean 在接口中 ContextAwarepublic Object registerDeclWrapBean(String beanName, DeclWarpBean declWarpBean)
registerDeclWrapBean 在接口中 ContextAwarepublic <T> T registerBean(Class<T> c)
registerBean 在接口中 ContextAwarepublic <T> T registerBean(String beanName, Object bean)
registerBean 在接口中 ContextAwarepublic <T> T registerOrGet(String beanName, Class<T> clazz)
registerOrGet 在接口中 ContextAwarepublic boolean hasBean(String beanName)
hasBean 在接口中 ContextAwarepublic int priority()
priority 在接口中 SpiPriorityCopyright © 2024. All rights reserved.