Package com.foxinmy.weixin4j.spring
Class SpringBeanFactory
- java.lang.Object
-
- com.foxinmy.weixin4j.spring.SpringBeanFactory
-
- All Implemented Interfaces:
BeanFactory
public class SpringBeanFactory extends Object implements BeanFactory
使用spring容器获取bean- Since:
- JDK 1.6
- Author:
- jinyu(foxinmy@gmail.com)
-
-
Constructor Summary
Constructors Constructor Description SpringBeanFactory(org.springframework.context.ApplicationContext context)
-
-
-
Method Detail
-
getBean
public Object getBean(String name)
- Specified by:
getBean
in interfaceBeanFactory
-
getBean
public <T> T getBean(Class<T> classType)
- Specified by:
getBean
in interfaceBeanFactory
-
getBean
public <T> T getBean(String name, Class<T> classType)
- Specified by:
getBean
in interfaceBeanFactory
-
getBeans
public <T> Map<String,T> getBeans(Class<T> clazz)
- Specified by:
getBeans
in interfaceBeanFactory
-
-