类 SpringBeanUtils

java.lang.Object
top.lingkang.finalsecurity.utils.SpringBeanUtils
所有已实现的接口:
org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

@Component public class SpringBeanUtils extends Object implements org.springframework.context.ApplicationContextAware
获取spring bean对象
从以下版本开始:
1.0.0
  • 构造器详细资料

    • SpringBeanUtils

      public SpringBeanUtils()
  • 方法详细资料

    • setApplicationContext

      public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
      指定者:
      setApplicationContext 在接口中 org.springframework.context.ApplicationContextAware
      抛出:
      org.springframework.beans.BeansException
    • getApplicationContext

      public static org.springframework.context.ApplicationContext getApplicationContext()
    • getBean

      public static Object getBean(String name)
    • getBean

      public static <T> T getBean(Class<T> clazz)
    • getBean

      public static <T> T getBean(String name, Class<T> clazz)
    • isExistsBean

      public static boolean isExistsBean(Class<?> clazz)