JSF-Spring

de.mindmatters.faces.spring.factory
Class ValueBindingResolvingInstantiationStrategy

java.lang.Object
  extended by org.springframework.beans.factory.support.SimpleInstantiationStrategy
      extended by de.mindmatters.faces.spring.factory.ValueBindingResolvingInstantiationStrategy
All Implemented Interfaces:
InstantiationStrategy

public final class ValueBindingResolvingInstantiationStrategy
extends SimpleInstantiationStrategy

Default object instantiation strategy for use in ManagedBeanFactories which resolves value bindings for replace- and lookup-methods. Uses CGLIB to generate subclasses dynamically if methods need to be overridden by the container to implement Method Injection.

Author:
Andreas Kuhrwahl

Field Summary
 
Fields inherited from class org.springframework.beans.factory.support.SimpleInstantiationStrategy
logger
 
Constructor Summary
ValueBindingResolvingInstantiationStrategy()
           
 
Method Summary
protected  java.lang.Object instantiateWithMethodInjection(RootBeanDefinition beanDefinition, java.lang.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.
protected  java.lang.Object instantiateWithMethodInjection(RootBeanDefinition beanDefinition, java.lang.String beanName, BeanFactory owner, java.lang.reflect.Constructor ctor, java.lang.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.
 
Methods inherited from class org.springframework.beans.factory.support.SimpleInstantiationStrategy
instantiate, instantiate, instantiate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValueBindingResolvingInstantiationStrategy

public ValueBindingResolvingInstantiationStrategy()
Method Detail

instantiateWithMethodInjection

protected java.lang.Object instantiateWithMethodInjection(RootBeanDefinition beanDefinition,
                                                          java.lang.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.

Overrides:
instantiateWithMethodInjection in class SimpleInstantiationStrategy

instantiateWithMethodInjection

protected java.lang.Object instantiateWithMethodInjection(RootBeanDefinition beanDefinition,
                                                          java.lang.String beanName,
                                                          BeanFactory owner,
                                                          java.lang.reflect.Constructor ctor,
                                                          java.lang.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.

Overrides:
instantiateWithMethodInjection in class SimpleInstantiationStrategy

JSF-Spring

Copyright © 2006 mindmatters GmbH & Co. KG