Bean files end with the extension .xml and contain <bean> tags. You can modify <bean> tags to define properties or point to customized files.
There are two common uses of beans:
- To define properties
- To point to one or more of your customized files
A typical bean file is <extension>/custom-repository-context.xml. A bean file contains <?xml> and <!DOCTYPE> headers, and <beans> tags outside the <bean> tags. You must preserve these items in your customized file.
CAUTION: When you override a <bean>, the entire
effects of the original bean are lost. The effect is the same as if you had
overridden a <config> by using
replace="true". Therefore, the overriding
<bean> must contain any information from the default
bean that you want to keep, as well as any additional information.
For example, if a core bean has four values, and you want to modify a single value, the resultant bean must still have four values. However, if you want to add a value, then the resultant bean must have five values - the original four values plus the added value.