de.mindmatters.faces.spring.factory
Class ConfigurableInstantiationStrategy
java.lang.Object
org.springframework.beans.factory.support.SimpleInstantiationStrategy
de.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
InstantiationProcessor
s. 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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConfigurableInstantiationStrategy
public ConfigurableInstantiationStrategy()
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)
-
Copyright © 2002 mindmatters GmbH & Co. KG