open class CglibSubclassingInstantiationStrategy : SimpleInstantiationStrategy
Default object instantiation strategy for use in BeanFactories.
Uses CGLIB to generate subclasses dynamically if methods need to be overridden by the container to implement Method Injection.
Author
Rod Johnson
Author
Juergen Hoeller
Author
Sam Brannen
Since
1.1
CglibSubclassingInstantiationStrategy()
Default object instantiation strategy for use in BeanFactories. Uses CGLIB to generate subclasses dynamically if methods need to be overridden by the container to implement Method Injection. |
open static fun getCurrentlyInvokedFactoryMethod(): Method
Return the factory method currently being invoked or Allows factory method implementations to determine whether the current caller is the container itself as opposed to user code. |
|
open fun instantiate(bd: RootBeanDefinition, beanName: String, owner: BeanFactory): Anyopen fun instantiate(bd: RootBeanDefinition, beanName: String, owner: BeanFactory, ctor: Constructor<*>, vararg args: Any): Anyopen fun instantiate(bd: RootBeanDefinition, beanName: String, owner: BeanFactory, factoryBean: Any, factoryMethod: Method, vararg args: Any): Any |