Osworkflow CONFIG code analysis

xiaoxiao2021-03-06  58

We know, there is BasicWorkflow, EJBWORKFLOW, SOAPWORKFLOW, OFBIZWORKFLOW, etc., but these implementations must have some code that can be reused, this is AbstractWorkflow. Workflow configuration LOAD is called the config package in AbstractWorkflow, and It is only responsible for controlling only one file.

In the com.opensymphony.workflow.config package, Configuration is an interface that has both DEFAULTCONFIGURATION and SpringConfiguration.

We know that in general there osworkflow.xml document reads as follows: system parsing process is as follows: 1) DEFAULTCONFIGURATION In the GetInputStream () method is responsible for the OSWORKFLOW.XML file above the load. The order is found: OSWORKFLOW.XML; /SWORKFLOW.XML; /SWORKFLOW.XML; META-INF / OSWORKFLOW.XML; /META-INF / OSWORKFLOW.XML2) After finding the file, the load () method resolves the file, and LOAD Factory class.

转载请注明原文地址:https://www.9cbs.com/read-90195.html

New Post(0)