pwallk commented on issue #2253:
URL: https://github.com/apache/hertzbeat/issues/2253#issuecomment-2219341877

   Beyond that, there are two questions:
   1. When two plug-ins (jar packages) have the same name, the old plug-in (jar 
package) will be overwritten.
   2.  When two plug-ins have the same full class name, such as ` 
org.Apache.Hertzbeat.Plugin.Impl.DemoPluginImpl `, despite the behavior is not 
the same, but throws an exception to stop adding and file upload is successful. 
 This does not make sense because there is no guarantee that the classes in 
each plug-in (jar package) will be different.  The common practice is to use a 
different classloader for each plug-in (jar package) to load, so that plug-ins 
are isolated.
   Of course, you can also consider using `PF4j` implementation.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to