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: SimpleInstantiationStrategy [javadoc | source]
java.lang.Object
   org.springframework.beans.factory.support.SimpleInstantiationStrategy

All Implemented Interfaces:
    InstantiationStrategy

Direct Known Subclasses:
    CglibSubclassingInstantiationStrategy

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.

Method from org.springframework.beans.factory.support.SimpleInstantiationStrategy Summary:
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.SimpleInstantiationStrategy Detail:
 public Object instantiate(RootBeanDefinition beanDefinition,
    String beanName,
    BeanFactory owner) 
 public Object instantiate(RootBeanDefinition beanDefinition,
    String beanName,
    BeanFactory owner,
    Constructor ctor,
    Object[] args) 
 public Object instantiate(RootBeanDefinition beanDefinition,
    String beanName,
    BeanFactory owner,
    Object factoryBean,
    Method factoryMethod,
    Object[] args) 
 protected 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. Instantiation should use a no-arg constructor.
 protected 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. Instantiation should use the given constructor and parameters.