public class CglibSubclassingInstantiationStrategy extends SimpleInstantiationStrategy
Uses CGLIB to generate subclasses dynamically if methods need to be overridden by the container to implement Method Injection.
| Constructor and Description |
|---|
CglibSubclassingInstantiationStrategy() |
| Modifier and Type | Method and Description |
|---|---|
protected Object |
instantiateWithMethodInjection(RootBeanDefinition bd,
String beanName,
BeanFactory owner)
Subclasses can override this method, which is implemented to throw
UnsupportedOperationException, if they can instantiate an object with
the Method Injection specified in the given RootBeanDefinition.
|
protected Object |
instantiateWithMethodInjection(RootBeanDefinition bd,
String beanName,
BeanFactory owner,
Constructor<?> ctor,
Object... args)
Subclasses can override this method, which is implemented to throw
UnsupportedOperationException, if they can instantiate an object with
the Method Injection specified in the given RootBeanDefinition.
|
getCurrentlyInvokedFactoryMethod, instantiate, instantiate, instantiatepublic CglibSubclassingInstantiationStrategy()
protected Object instantiateWithMethodInjection(RootBeanDefinition bd, String beanName, BeanFactory owner)
SimpleInstantiationStrategyinstantiateWithMethodInjection in class SimpleInstantiationStrategyprotected Object instantiateWithMethodInjection(RootBeanDefinition bd, String beanName, BeanFactory owner, Constructor<?> ctor, Object... args)
SimpleInstantiationStrategyinstantiateWithMethodInjection in class SimpleInstantiationStrategy