Save This Page
Home » spring-framework-2.5.5-with-dependencies » org.springframework » beans » factory » support » [javadoc | source]
org.springframework.beans.factory.support
public class: CglibSubclassingInstantiationStrategy [javadoc | source]
java.lang.Object
   org.springframework.beans.factory.support.SimpleInstantiationStrategy
      org.springframework.beans.factory.support.CglibSubclassingInstantiationStrategy

All Implemented Interfaces:
    InstantiationStrategy

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.

Method from org.springframework.beans.factory.support.CglibSubclassingInstantiationStrategy Summary:
instantiateWithMethodInjection,   instantiateWithMethodInjection
Methods from org.springframework.beans.factory.support.SimpleInstantiationStrategy:
instantiate,   instantiate,   instantiate,   instantiateWithMethodInjection,   instantiateWithMethodInjection
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.springframework.beans.factory.support.CglibSubclassingInstantiationStrategy Detail:
 protected Object instantiateWithMethodInjection(RootBeanDefinition beanDefinition,
    String beanName,
    BeanFactory owner) 
 protected Object instantiateWithMethodInjection(RootBeanDefinition beanDefinition,
    String beanName,
    BeanFactory owner,
    Constructor ctor,
    Object[] args)