SourceForge.net Logo

de.mindmatters.faces.spring.factory
Class ConfigurableInstantiationStrategy

java.lang.Object
  extended byorg.springframework.beans.factory.support.SimpleInstantiationStrategy
      extended byde.mindmatters.faces.spring.factory.ConfigurableInstantiationStrategy
All Implemented Interfaces:
InstantiationStrategy
Direct Known Subclasses:
ValueBindingResolvingInstantiationStrategy

public class ConfigurableInstantiationStrategy
extends SimpleInstantiationStrategy

Instantiation strategy which can be configured with InstantiationProcessors. If a configured processor returns a not-null object on processing a bean definition, this object will be returned. If all configured processors return null the simple instantiation strategy will be applied to the defined beans.

Author:
Andreas Kuhrwahl
See Also:
InstantiationProcessor

Field Summary
 
Fields inherited from class org.springframework.beans.factory.support.SimpleInstantiationStrategy
logger
 
Constructor Summary
ConfigurableInstantiationStrategy()
           
 
Method Summary
 void addInstantiationProcessor(InstantiationProcessor processor)
          Adds a InstantiationProcessor to this strategy.
 void addInstantiationProcessors(java.util.List processors)
          Adds a list of InstantiationProcessors to this strategy.
 java.util.List getInstantiationProcessors()
           
 java.lang.Object instantiate(RootBeanDefinition beanDefinition, java.lang.String beanName, BeanFactory owner)
          
 java.lang.Object instantiate(RootBeanDefinition beanDefinition, java.lang.String beanName, BeanFactory owner, java.lang.reflect.Constructor ctor, java.lang.Object[] args)
          
 
Methods inherited from class org.springframework.beans.factory.support.SimpleInstantiationStrategy
instantiate, instantiateWithMethodInjection, instantiateWithMethodInjection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigurableInstantiationStrategy

public ConfigurableInstantiationStrategy()
Method Detail

addInstantiationProcessor

public final void addInstantiationProcessor(InstantiationProcessor processor)
Adds a InstantiationProcessor to this strategy.

Parameters:
processor - the processor to add

addInstantiationProcessors

public final void addInstantiationProcessors(java.util.List processors)
Adds a list of InstantiationProcessors to this strategy.

Parameters:
processors - the processors to add

getInstantiationProcessors

public final java.util.List getInstantiationProcessors()
Returns:
the instantiationProcessors

instantiate

public final java.lang.Object instantiate(RootBeanDefinition beanDefinition,
                                          java.lang.String beanName,
                                          BeanFactory owner,
                                          java.lang.reflect.Constructor ctor,
                                          java.lang.Object[] args)


instantiate

public final java.lang.Object instantiate(RootBeanDefinition beanDefinition,
                                          java.lang.String beanName,
                                          BeanFactory owner)


SourceForge.net Logo

Copyright © 2002 mindmatters GmbH & Co. KG