ServiceLoader

  First, analyze the business scenario, and then complete the data analysis and processing function. According to the different types of data, first call one of groovy or python script to process the data. After processing the data, the process needs to be the same.

  To support dynamic expansion of processing capabilities, that is, after the framework is completed, new processing capabilities can be added without changing the original code. To increase the ability of el to process data.

  At this time, ServiceLoader can easily complete the requirements.

 

  Look at the required modules first. groovy, python modules are specific processing modules. The plat module uses the ServiceLoader to call the groovy or python module, and then completes the subsequent processing. The pon module is a business test module

  

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325115767&siteId=291194637