private static class CglibSubclassingInstantiationStrategy.CglibSubclassCreator
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private RootBeanDefinition |
beanDefinition |
private static java.lang.Class<?>[] |
CALLBACK_TYPES |
private BeanFactory |
owner |
Constructor and Description |
---|
CglibSubclassCreator(RootBeanDefinition beanDefinition,
BeanFactory owner) |
Modifier and Type | Method and Description |
---|---|
private java.lang.Class<?> |
createEnhancedSubclass(RootBeanDefinition beanDefinition)
Create an enhanced subclass of the bean class for the provided bean
definition, using CGLIB.
|
java.lang.Object |
instantiate(java.lang.reflect.Constructor<?> ctor,
java.lang.Object... args)
Create a new instance of a dynamically generated subclass implementing the
required lookups.
|
private static final java.lang.Class<?>[] CALLBACK_TYPES
private final RootBeanDefinition beanDefinition
private final BeanFactory owner
CglibSubclassCreator(RootBeanDefinition beanDefinition, BeanFactory owner)
public java.lang.Object instantiate(java.lang.reflect.Constructor<?> ctor, java.lang.Object... args)
ctor
- constructor to use. If this is null
, use the
no-arg constructor (no parameterization, or Setter Injection)args
- arguments to use for the constructor.
Ignored if the ctor
parameter is null
.private java.lang.Class<?> createEnhancedSubclass(RootBeanDefinition beanDefinition)