Class WrapperUtils


  • public abstract class WrapperUtils
    extends java.lang.Object
    The utilities class for wrapper interfaces
    Since:
    1.0.0
    • Constructor Summary

      Constructors 
      Constructor Description
      WrapperUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      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

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WrapperUtils

        public WrapperUtils()
    • Method Detail

      • unwrap

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