The Provides attribute indicates that execution of the marked controller yields a value to be consumed by other controllers.
This attribute is specified for Property and Field level usage. Controller execution order, while being significantly influenced by the rules defined through Bind attributes, are governed by the set of Provides/Requires/DependsOn attributes. Controllers which provide a value
v will run before controllers that Require or DependOn
v. The order enforced here supersedes the order enforced through the Bind attribute.
- Be Careful
- Note that all values without an explicit Requires/DependsOn that are marked as either Request or Session scope will be defaulted to Provides. Conversely, if the field has no attributes, it WILL NOT be marked as
Provide. To provide the value it must be marked as either Request or Session.
The name property can be used to redefine the resource name made public by this attribute. The value defaults to the name of the property or field marked.