What is the working principle of SimpleFramework based on component mechanism?
This article is to share with you about the component-based mechanism of SimpleFramework working principle, the editor feels very practical, so share with you to learn, I hope you can learn something after reading this article, say no more, follow the editor to have a look.
Life cycle:
Understanding the life cycle of SimpleFramework will be very beneficial to the effective use of SimpleFramework. This lifecycle consists of the following steps:
Loading of applications
The original request and response process
Intercept HTML generated by Respone
Parsing metadata in XML
Implementation of Handle
Component rendering
New HTML response to browser
Loading of applications
SimpleFramework-based applications can be loaded by defining Filter within a web.xml file, which can be loaded into any Java EE-based application server. SimpleFramework also provides an entry class for Web applications, which is not necessary, of course, but inheriting from AbstractWebApplication allows you to build Web applications more quickly. The following is a typical example of configuration:
Startup net.simpleframework.web.SimpleWebApplication 0 actionFilter