Governator is a library of extensions and utilities that enhance Google Guice to provide: classpath scanning and automatic binding, lifecycle management, configuration to field mapping, field validation and parallelized object warmup.
If inject a sun.misc.Launcher$AppClassLoader(it implements Autoclosable) in governator, it will be closed by the predestroy strategy, and cause error java.lang.NoClassDefFoundError when call the next predestroy method which used the classes load by the sun.misc.Launcher$AppClassLoader。
If inject a
sun.misc.Launcher$AppClassLoader
(it implements Autoclosable) in governator, it will be closed by the predestroy strategy, and cause errorjava.lang.NoClassDefFoundError
when call the next predestroy method which used the classes load by thesun.misc.Launcher$AppClassLoader
。