ar.com.leak.iolsucker.container.spring
Class StaticConditionalFactoryBean
java.lang.Object
ar.com.leak.iolsucker.container.spring.StaticConditionalFactoryBean
- All Implemented Interfaces:
- org.springframework.beans.factory.FactoryBean
public class StaticConditionalFactoryBean
- extends Object
- implements org.springframework.beans.factory.FactoryBean
Bean factory with a conditional. if the condition is true
,
the trueBean is injected. else the falseBean
- Since:
- Aug 30, 2005
- Author:
- Juan F. Codagnone
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StaticConditionalFactoryBean
public StaticConditionalFactoryBean()
getObject
public final Object getObject()
throws Exception
- Specified by:
getObject
in interface org.springframework.beans.factory.FactoryBean
- Throws:
Exception
- See Also:
FactoryBean.getObject()
getObjectType
public final Class getObjectType()
- Specified by:
getObjectType
in interface org.springframework.beans.factory.FactoryBean
- See Also:
FactoryBean.getObjectType()
isSingleton
public final boolean isSingleton()
- Specified by:
isSingleton
in interface org.springframework.beans.factory.FactoryBean
- See Also:
FactoryBean.isSingleton()
setCondition
public final void setCondition(boolean condition)
- Parameters:
condition
- the factory condition
setFalseBean
public final void setFalseBean(Object falseBean)
- Parameters:
falseBean
- the bean to return if the condition is
false
setTrueBean
public final void setTrueBean(Object trueBean)
- Parameters:
trueBean
- the bean to return if the condition is true
Copyright © 2005-2009 leak.com.ar. All Rights Reserved.