public class LaxInstantiationStrategyWrapper extends Object implements org.springframework.beans.factory.support.InstantiationStrategy
InstantiationStrategy which doesn't fail if a bean cannot be instantiated, as long as such bean has been marked as
optional in a OptionalObjectsController. In such case, the object is marked as discarded with the controller and a
placeholder object is returned.
This object delegates actual instantiation into a delegate which it wrapsDiscardedOptionalBeanPostProcessor| Constructor and Description |
|---|
LaxInstantiationStrategyWrapper(org.springframework.beans.factory.support.InstantiationStrategy delegate,
OptionalObjectsController optionalObjectsController) |
| Modifier and Type | Method and Description |
|---|---|
Object |
instantiate(org.springframework.beans.factory.support.RootBeanDefinition bd,
String beanName,
org.springframework.beans.factory.BeanFactory owner) |
Object |
instantiate(org.springframework.beans.factory.support.RootBeanDefinition bd,
String beanName,
org.springframework.beans.factory.BeanFactory owner,
Constructor<?> ctor,
Object... args) |
Object |
instantiate(org.springframework.beans.factory.support.RootBeanDefinition bd,
String beanName,
org.springframework.beans.factory.BeanFactory owner,
Object factoryBean,
Method factoryMethod,
Object... args) |
public LaxInstantiationStrategyWrapper(org.springframework.beans.factory.support.InstantiationStrategy delegate,
OptionalObjectsController optionalObjectsController)
public Object instantiate(org.springframework.beans.factory.support.RootBeanDefinition bd, String beanName, org.springframework.beans.factory.BeanFactory owner) throws org.springframework.beans.BeansException
instantiate in interface org.springframework.beans.factory.support.InstantiationStrategyorg.springframework.beans.BeansExceptionpublic Object instantiate(org.springframework.beans.factory.support.RootBeanDefinition bd, String beanName, org.springframework.beans.factory.BeanFactory owner, Constructor<?> ctor, Object... args) throws org.springframework.beans.BeansException
instantiate in interface org.springframework.beans.factory.support.InstantiationStrategyorg.springframework.beans.BeansExceptionpublic Object instantiate(org.springframework.beans.factory.support.RootBeanDefinition bd, String beanName, org.springframework.beans.factory.BeanFactory owner, Object factoryBean, Method factoryMethod, Object... args) throws org.springframework.beans.BeansException
instantiate in interface org.springframework.beans.factory.support.InstantiationStrategyorg.springframework.beans.BeansExceptionCopyright © 2003–2020 MuleSoft, Inc.. All rights reserved.