Save This Page
Home » spring-framework-2.5.5-with-dependencies » org.springframework » beans » factory » support » [javadoc | source]
org.springframework.beans.factory.support
public interface: InstantiationStrategy [javadoc | source]

All Known Implementing Classes:
    SimpleInstantiationStrategy, CglibSubclassingInstantiationStrategy

Interface responsible for creating instances corresponding to a root bean definition.

This is pulled out into a strategy as various approaches are possible, including using CGLIB to create subclasses on the fly to support Method Injection.

Method from org.springframework.beans.factory.support.InstantiationStrategy Summary:
instantiate,   instantiate,   instantiate
Method from org.springframework.beans.factory.support.InstantiationStrategy Detail:
 public Object instantiate(RootBeanDefinition beanDefinition,
    String beanName,
    BeanFactory owner) throws BeansException
    Return an instance of the bean with the given name in this factory.
 public Object instantiate(RootBeanDefinition beanDefinition,
    String beanName,
    BeanFactory owner,
    Constructor ctor,
    Object[] args) throws BeansException
    Return an instance of the bean with the given name in this factory, creating it via the given constructor.
 public Object instantiate(RootBeanDefinition beanDefinition,
    String beanName,
    BeanFactory owner,
    Object factoryBean,
    Method factoryMethod,
    Object[] args) throws BeansException
    Return an instance of the bean with the given name in this factory, creating it via the given factory method.