attach icon indicating copy to clipboard operation
attach copied to clipboard

Improve warning message when service implementation is missing

Open tiainen opened this issue 5 years ago • 0 comments

Loading an attach service via Services.get() returns an empty Optional if the platform implementation class could not be found. In that case, the following message is logged:

WARNING: No new instance for interface com.gluonhq.attach.storage.StorageService and class com.gluonhq.attach.storage.impl.DesktopStorageService

The meaning of the ClassNotFoundException can have the following causes and the message should be adapted accordingly to give the correct information to the developer:

  1. the platform specific implementation of the service is not included on the classpath, most likely because of a missing project dependency declaration
  2. the service is not yet implemented for the platform
  3. the service is not supported on the platform or doesn't make much sense

tiainen avatar Apr 03 '20 11:04 tiainen