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, instantiate
public CglibSubclassingInstantiationStrategy()
protected Object instantiateWithMethodInjection(RootBeanDefinition bd, @Nullable String beanName, BeanFactory owner)
SimpleInstantiationStrategy
instantiateWithMethodInjection
in class SimpleInstantiationStrategy
protected Object instantiateWithMethodInjection(RootBeanDefinition bd, @Nullable String beanName, BeanFactory owner, @Nullable Constructor<?> ctor, @Nullable Object... args)
SimpleInstantiationStrategy
instantiateWithMethodInjection
in class SimpleInstantiationStrategy