类 SmsSpringUtils
java.lang.Object
org.dromara.sms4j.starter.utils.SmsSpringUtils
- 所有已实现的接口:
org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware
public class SmsSpringUtils
extends Object
implements org.springframework.context.ApplicationContextAware
类名: SmsSpringUtil
说明:spring bean工具
- 作者:
- :Wind 2023/3/25 0:13
-
字段概要
字段修饰符和类型字段说明private static org.springframework.context.ApplicationContextprivate final org.springframework.beans.factory.support.DefaultListableBeanFactory -
构造器概要
构造器构造器说明SmsSpringUtils(org.springframework.beans.factory.support.DefaultListableBeanFactory beanFactory) -
方法概要
修饰符和类型方法说明voidcreateBean(Class<?> clazz) 说明:创建一个beanvoidcreateBean(Object o) voiddeleteBean(String beanName) static <T> Tstatic Objectstatic <T> TgetBeansOfType(Class<T> interfaceType) static booleaninterfaceExist(Class<?> interfaceType) interfaceExistvoidreplaceBean(String beanName, Class<?> clazz) voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext)
-
字段详细资料
-
applicationContext
private static org.springframework.context.ApplicationContext applicationContext -
beanFactory
private final org.springframework.beans.factory.support.DefaultListableBeanFactory beanFactory
-
-
构造器详细资料
-
SmsSpringUtils
public SmsSpringUtils(org.springframework.beans.factory.support.DefaultListableBeanFactory beanFactory)
-
-
方法详细资料
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException - 指定者:
setApplicationContext在接口中org.springframework.context.ApplicationContextAware- 抛出:
org.springframework.beans.BeansException
-
getBean
-
getBean
-
getBean
-
createBean
说明:创建一个bean
-
createBean
-
replaceBean
-
deleteBean
-
interfaceExist
interfaceExist判断容器中是否存在某类型的bean
-
getBeansOfType
-