Business extension system and method
A business and extension point technology, applied in the field of data processing, can solve problems such as code maintainability reduction, system structure imbalance, complex business logic, etc., and achieve the effect of improving maintainability and flexibility
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0042] The methods include:
[0043] According to the business scenario, insert an extension point and realize the definition of the extension point, and complete the business expansion under the business scenario;
[0044] Unified definition of the interface of the service extension;
[0045] Unified calling and processing of the business extension;
[0046] Unified management of all business extensions.
[0047] By adopting the embodiment of the present invention, the maintainability and flexibility of the system can be improved through the personalized extension paradigm.
Embodiment 2
[0049] In another embodiment of the present invention, in addition to the above-mentioned processing method, the method inserting an extension point and realizing the definition of the extension point, and completing the business expansion in the business scenario may further include:
[0050] Inserting the extension statement and defining the name of the extension point, and completing the service extension according to the extension statement.
[0051] The definition of the extension point includes the definition of the extension point name and the declaration of the annotation class of the extension point. Definition of extension point: According to the business scenario, an extension point is inserted in a specific link of system operation to complete the personalized business extension in this scenario. With this model, its definition is just a constant string, which is convenient and simple. If you use the traditional interface-based extension, you need to define the in...
Embodiment 3
[0053] In another embodiment of the present invention, in addition to the above-mentioned processing method, the unified definition of the interface of the service extension may further include: determining the extension point according to the extension statement calling method.
[0054] The definition of the extended service interface is the declaration of the interface, and the declaration of the interface determines the calling method at the extension point. The implementation of this interface is the extension implementation. The implementation of each extension point is loaded when the system is initialized through the Spring container. This interface is a unified interface that only returns whether the execution is successful or not. The input parameters can use Java dynamic parameters. The specific input parameters can be flexibly changed within a certain range according to different extension points. Because the interfaces are consistent, the trouble of defining diff...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 