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 java.lang.Object |
instantiateWithMethodInjection(RootBeanDefinition bd,
java.lang.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 java.lang.Object |
instantiateWithMethodInjection(RootBeanDefinition bd,
java.lang.String beanName,
BeanFactory owner,
java.lang.reflect.Constructor<?> ctor,
java.lang.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 java.lang.Object instantiateWithMethodInjection(RootBeanDefinition bd, java.lang.String beanName, BeanFactory owner)
SimpleInstantiationStrategy
instantiateWithMethodInjection
in class SimpleInstantiationStrategy
protected java.lang.Object instantiateWithMethodInjection(RootBeanDefinition bd, java.lang.String beanName, BeanFactory owner, java.lang.reflect.Constructor<?> ctor, java.lang.Object... args)
SimpleInstantiationStrategy
instantiateWithMethodInjection
in class SimpleInstantiationStrategy