I am using spring xml configuration and want to load either bean if system environment property is set
For example ::
if(system.property is set as "A")
<bean id="A" class="mypackage.A">
</bean>
else
<bean id="B" class="mypackage.B">
</bean>
Is it possible with SpEl , similar post i found is Condition Bean loading but not of if else condition
as in this post we are using lazy initialization of loading bean based on if variable is present in system environment but no if,else condition is specified for bean loading.
Please share if anybody has any idea how to achieve this.