@Component public class SpringContext extends Object
Modifier and Type | Field and Description |
---|---|
static org.apache.log4j.Logger |
log |
Constructor and Description |
---|
SpringContext() |
Modifier and Type | Method and Description |
---|---|
static <T> T |
getBean(Class<T> clazz) |
static Object |
getBean(String name) |
static <T> T |
getBean(String name,
Class<T> beanType) |
static org.springframework.context.ConfigurableApplicationContext |
getInstance() |
void |
setContext(org.springframework.context.ConfigurableApplicationContext ctx) |
@Autowired public void setContext(org.springframework.context.ConfigurableApplicationContext ctx)
public static org.springframework.context.ConfigurableApplicationContext getInstance()
public static <T> T getBean(Class<T> clazz)
Copyright © 2019 Suncode. All rights reserved.