类 WrapperUtils


  • public abstract class WrapperUtils
    extends java.lang.Object
    The utilities class for wrapper interfaces
    从以下版本开始:
    1.0.0
    • 方法概要

      所有方法 静态方法 具体方法 
      修饰符和类型 方法 说明
      static org.springframework.beans.factory.config.ConfigurableListableBeanFactory unwrap​(org.springframework.beans.factory.BeanFactory beanFactory)
      Unwrap BeanFactory to ConfigurableListableBeanFactory
      static org.springframework.core.env.ConfigurableEnvironment unwrap​(org.springframework.core.env.Environment environment)
      Unwrap Environment to ConfigurableEnvironment
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 构造器详细资料

      • WrapperUtils

        public WrapperUtils()
    • 方法详细资料

      • unwrap

        public static org.springframework.beans.factory.config.ConfigurableListableBeanFactory unwrap​(org.springframework.beans.factory.BeanFactory beanFactory)
                                                                                               throws java.lang.IllegalArgumentException
        Unwrap BeanFactory to ConfigurableListableBeanFactory
        参数:
        beanFactory - ConfigurableListableBeanFactory
        返回:
        ConfigurableListableBeanFactory
        抛出:
        java.lang.IllegalArgumentException - If beanFactory argument is not an instance of ConfigurableListableBeanFactory
      • unwrap

        public static org.springframework.core.env.ConfigurableEnvironment unwrap​(org.springframework.core.env.Environment environment)
                                                                           throws java.lang.IllegalArgumentException
        Unwrap Environment to ConfigurableEnvironment
        参数:
        environment - Environment
        返回:
        ConfigurableEnvironment
        抛出:
        java.lang.IllegalArgumentException - If environment argument is not an instance of ConfigurableEnvironment