Class WrapperUtils
java.lang.Object
org.apache.dubbo.config.spring.util.WrapperUtils
The utilities class for wrapper interfaces
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.springframework.beans.factory.config.ConfigurableListableBeanFactoryunwrap(org.springframework.beans.factory.BeanFactory beanFactory) UnwrapBeanFactorytoConfigurableListableBeanFactorystatic org.springframework.core.env.ConfigurableEnvironmentunwrap(org.springframework.core.env.Environment environment) UnwrapEnvironmenttoConfigurableEnvironment
-
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 UnwrapBeanFactorytoConfigurableListableBeanFactory- Parameters:
beanFactory-ConfigurableListableBeanFactory- Returns:
ConfigurableListableBeanFactory- Throws:
IllegalArgumentException- IfbeanFactoryargument is not an instance ofConfigurableListableBeanFactory
-
unwrap
public static org.springframework.core.env.ConfigurableEnvironment unwrap(org.springframework.core.env.Environment environment) throws IllegalArgumentException UnwrapEnvironmenttoConfigurableEnvironment- Parameters:
environment-Environment- Returns:
ConfigurableEnvironment- Throws:
IllegalArgumentException- Ifenvironmentargument is not an instance ofConfigurableEnvironment
-