<config:priority/>

Priority allows certain methods to be given priority over others. This can be used in certain circumstances when it is necessary to disambiguate the selection of a setter method or an add method.

The default priority of a method is 0. Therefore, if you want a method to have a higher priority, set it to some number greater than 0. You can also make a method have a lower priority than other methods by setting the priority to a negative number.

Implemented by:
thinkmap.xmlconfig.tags.Priority

Simple Attributes

method

description: Set the method spec.

type: String

required: Yes

namespace

description: Set the namespace of this priority. If the priority is specified within a <config:namespace> the containing namespace can be used. Otherwise, this is required.

type: String

required: No

priority

description: Set the priority.

type: int

required: No


default: 0