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
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
Object
|
instantiate(RootBeanDefinition beanDefinition, String beanName, BeanFactory owner)
Return an instance of the bean with the given name in this factory.
|
Object
|
instantiate(RootBeanDefinition beanDefinition, String beanName, BeanFactory owner, Object factoryBean, Method factoryMethod, Object[] args)
Return an instance of the bean with the given name in this factory,
creating it via the given factory method.
|
Object
|
instantiate(RootBeanDefinition beanDefinition, String beanName, BeanFactory owner, Constructor<?> ctor, Object[] args)
Return an instance of the bean with the given name in this factory,
creating it via the given constructor.
|
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.
|
|
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
From interface
org.springframework.beans.factory.support.InstantiationStrategy
abstract
Object
|
instantiate(RootBeanDefinition beanDefinition, String beanName, BeanFactory owner)
Return an instance of the bean with the given name in this factory.
|
abstract
Object
|
instantiate(RootBeanDefinition beanDefinition, String beanName, BeanFactory owner, Object factoryBean, Method factoryMethod, Object[] args)
Return an instance of the bean with the given name in this factory,
creating it via the given factory method.
|
abstract
Object
|
instantiate(RootBeanDefinition beanDefinition, String beanName, BeanFactory owner, Constructor<?> ctor, Object[] args)
Return an instance of the bean with the given name in this factory,
creating it via the given constructor.
|
|
Public Constructors
public
CglibSubclassingInstantiationStrategy
()
Protected Methods
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.
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.