The invention relates to a plug-in support method based on a preloading mechanism. The method comprises the following steps that 1, a main program starts, in addition, a plug-in operation framework is loaded, and the plug-in operation framework is in charge of reading an external plug-in; 2, the plug-in operation framework starts an independent class
loader for the external plug-in, the class
loader loads the types in the plug-in, and in addition, the types are stored in the local global buffer; 3, the plug-in operation framework obtains the current class
loader of the main program, a parent loader of the current class loader of the main program is replaced into the agent class of the original parent loader, and the agent class of the original parent loader can intercept all classes sent to the original class loader for loading and calling; 4, when the main program requests to call the
Class type, the
Class type is found in the original parent loader according to the type names, if the
target type is not found, whether the types provided by the corresponding plug-in exists or not is matched in the local global buffer, if the matching is successful, the direct loading and executing is carried out, and otherwise, exception is thrown.