public class

CglibSubclassingInstantiationStrategy

extends SimpleInstantiationStrategy
java.lang.Object
   ↳ org.springframework.beans.factory.support.SimpleInstantiationStrategy
     ↳ org.springframework.beans.factory.support.CglibSubclassingInstantiationStrategy

Class Overview

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.

Using Method Injection features requires CGLIB on the classpath. However, the core IoC container will still run without CGLIB being available.

Summary

Public Constructors
CglibSubclassingInstantiationStrategy()
Protected Methods
Object instantiateWithMethodInjection(RootBeanDefinition beanDefinition, 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.
Object instantiateWithMethodInjection(RootBeanDefinition beanDefinition, 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.
[Expand]
Inherited Methods
From class org.springframework.beans.factory.support.SimpleInstantiationStrategy
From class java.lang.Object
From interface org.springframework.beans.factory.support.InstantiationStrategy

Public Constructors

public CglibSubclassingInstantiationStrategy ()

Also: SpringBeans

Protected Methods

protected Object instantiateWithMethodInjection (RootBeanDefinition beanDefinition, String beanName, BeanFactory owner)

Also: SpringBeans

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. Instantiation should use a no-arg constructor.

protected Object instantiateWithMethodInjection (RootBeanDefinition beanDefinition, String beanName, BeanFactory owner, Constructor ctor, Object[] args)

Also: SpringBeans

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. Instantiation should use the given constructor and parameters.