Webapp classloaders don't have a well-defined way of
ordering the jar files with regard to precedence.
Because the sequence of loading xbean.properties
descriptors is important, we need a way of ordering this
process.
This should be accomplished by adding a special
property: priority to xbean.properties. At load time, all
the properties files found in the classpath will be
loaded. They should be merged according first to their
explicit priority, and then with respect to the original
ordering.
So if there are two jars both containing xbean.properties.
a.jar: priority=10
b.jar: priority=20
a.jar's xbean.properties will override those in b.jar.
Please note that higher priority means higher
precedence. Default (unspecifiied priority) will be 0.
jars/classpath entries with the same precedence should
follow the same sequence as specified:
For example:
java -cp x.jar;y.jar
x.jar's xbean.properties will necessarily override those in
y.jar if their priority is identical.
RS