Class WrapperUtils

java.lang.Object
org.apache.dubbo.config.spring.util.WrapperUtils

public abstract class WrapperUtils extends Object
The utilities class for wrapper interfaces
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • WrapperUtils

      public WrapperUtils()
  • Method Details

    • unwrap

      public static org.springframework.beans.factory.config.ConfigurableListableBeanFactory unwrap(org.springframework.beans.factory.BeanFactory beanFactory) throws IllegalArgumentException
      Unwrap BeanFactory to ConfigurableListableBeanFactory
      Parameters:
      beanFactory - ConfigurableListableBeanFactory
      Returns:
      ConfigurableListableBeanFactory
      Throws:
      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 IllegalArgumentException
      Unwrap Environment to ConfigurableEnvironment
      Parameters:
      environment - Environment
      Returns:
      ConfigurableEnvironment
      Throws:
      IllegalArgumentException - If environment argument is not an instance of ConfigurableEnvironment