user978939
user978939

Reputation: 131

Modifying spring framework as per my needs

I need to do develop a wrapper on top of spring framework. Details are as follows:

There will be one file called as template

<beans>
   <bean  class"com.sample.SampleClass">
          <property name="abc" identifier="id100" > defaultValue </property>
          <property name="abc" identifier="id101" >  </property>
   </bean>
</beans>

Now there will be many value files Contents of Value files will be:

id100={ someValue}
id101={ overidingValue}

Now at run time new bean will be created for each value file. So value files will create one separate bean for each value file by overriding values from value file.

How can i go about developing such framework? Any pointers?

This is just my very basic idea.

How can i use BeanFactory as mentioned by Alex in this context?

Upvotes: 0

Views: 73

Answers (1)

AlexR
AlexR

Reputation: 115378

I'd suggest you to use BeanFactory. It can implement any logic your want and get its configuration via PropertyPlaceholderConfigurer

Upvotes: 1

Related Questions