Calling method in Bean property attribute
I have a simple bean tag in the bean xml file as shown below. This is just
a dummy values
<bean id="myBeanId" class="myBeanClass">
<property name="myProperty" value=${myPassword} />
</bean>
<bean> id ="myOtherBeanId" class="myOtherBeanClass">
<property name="myOtherProperty" ref="myBeanId">
</bean>
myPassword is a variable names stored in a separate properties file. Now,
I instead of storing the direct value of myPassword from the properties
file, I will have encrypted string in the property file and I want to call
my custom written Decrypt method on myPassword property instead. something
like this.
How can I do this?
No comments:
Post a Comment