@Configuration @EnableConfigurationProperties(value=RetrofitProperties.class) public class RetrofitAutoConfiguration extends Object implements org.springframework.context.ApplicationContextAware
| 限定符和类型 | 字段和说明 |
|---|---|
private org.springframework.context.ApplicationContext |
applicationContext |
private RetrofitProperties |
retrofitProperties |
| 构造器和说明 |
|---|
RetrofitAutoConfiguration() |
| 限定符和类型 | 方法和说明 |
|---|---|
private <U> Collection<U> |
getBeans(Class<U> clz) |
RetrofitConfigBean |
retrofitConfigBean() |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
@Autowired private RetrofitProperties retrofitProperties
private org.springframework.context.ApplicationContext applicationContext
@Bean @ConditionalOnMissingBean public RetrofitConfigBean retrofitConfigBean() throws IllegalAccessException, InstantiationException
private <U> Collection<U> getBeans(Class<U> clz)
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext 在接口中 org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionCopyright © 2020. All rights reserved.