Comparison of shark and jbpm Configuration File Processing Methods

Source: Internet
Author: User

1. The Singleton mode is used.
I think this is the most basic, generalProgramThe parser is used in this way. It should be noted that agileflow
In addition to the singleton mode, the configuration file is dynamically loaded. If you modify the configuration file
Dynamically obtain these changes during running.
When using jbpm, use this mode In the first sentence: jbpmservicefactory. getinstance ()....

2. Both the default configuration and custom configuration are implemented.
In shark, the default configuration is placed in a deep directory, and the custom configuration is placed in the config directory.
The file content is similar;
In jbpm, the default configuration is placed inCodeIs as follows:
Propertyclassnames = new hashmap ();
Propertyclassnames. Put ("default", "org. jbpm. impl. defaultservicefactory ");
Abbreviatedclassnames. Put ("jbpm. Service. Factory", propertyclassnames );
The custom configuration is placed in the config Directory, which is jbpm. Properties
In comparison, jbpm is better implemented for the following reasons:
1) The default configuration is easy to find
2) custom configuration is very simple. By default, there is no configuration, which is much clearer than shark.

3. all implement the use of one Singleton to implement multiple Singleton
I have discussed this function in the Article of the shark Learning Series, jbpm is in jbpmconfiguration. implemented in Java:
private void instantiateconfiguredobjects () {
// instantiate configured objects
This. filemgr = (filemgr) instantiate ("jbpm. file. mgr ", filemgr. class);
This. idgenerator = (idgenerator) instantiate ("jbpm. id. generator ", idgenerator. class);
This. servicefactory = (servicefactory) instantiate ("jbpm. service. factory ", servicefactory. class);
}

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.