主权项 |
1. A computer-implemented method of making a decision in a web application framework, comprising:
at a context analyzer layer, receiving a context to a request from a user computing device; at the context analyzer layer, parsing the context; at a configuration collector layer, receiving a web page configuration; at the configuration collector layer, parsing the web page configuration into at least one page component in a component tree, the component tree comprising at least two child nodes; at the configuration collector layer, injecting a name of an external class into the at least one page component; at a data collector layer, invoking the external class; at the external class, implementing an interface for a proposed decision-making function, wherein the proposed decision-making function comprises a decision between the at least two child nodes; at the external class, choosing a selected child node; at a model builder layer, preparing a page model comprising the selected child node; at a view resolver layer, mapping between a view name of the selected child node and a view in a presentation tier; and at the presentation tier, rendering the child node and outputting a result file to the user computing device. |