open class SimpleInstantiationStrategy : InstantiationStrategy
Simple object instantiation strategy for use in a BeanFactory.
Does not support Method Injection, although it provides hooks for subclasses to override to add Method Injection support, for example by overriding methods.
Author
Rod Johnson
Author
Juergen Hoeller
Since
1.1
SimpleInstantiationStrategy()
Simple object instantiation strategy for use in a BeanFactory. Does not support Method Injection, although it provides hooks for subclasses to override to add Method Injection support, for example by overriding methods. |
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 |
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. |