lundi 23 février 2015

Spring Profile in the spring xml

I have two property objects as ::


to decide on which property to use I am using



<bean id="properties"
class="com.Properties"
factory-method="getProperties">
<constructor-arg index="0" ref="property1" />
<constructor-arg index="1" ref="property2" />
<constructor-arg index="2" value="${propertytouse:false}" />
</bean>


The problem with this approach is I have to use a static method for decision making. I was wondering if there is any other way to declare the bean in order to make the decision.


Aucun commentaire:

Enregistrer un commentaire