Package oshi.demo
Class WmiNoComInitQueryHandler
java.lang.Object
oshi.util.platform.windows.WmiQueryHandler
oshi.demo.WmiNoComInitQueryHandler
public class WmiNoComInitQueryHandler
extends oshi.util.platform.windows.WmiQueryHandler
Query handler class that avoids COM initialization overhead assuming COM is already initialized by the user.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
initCOM()
Don't initialize COM, despite the method name.Methods inherited from class oshi.util.platform.windows.WmiQueryHandler
createInstance, getComThreading, getWmiTimeout, handleComException, initCOM, isSecurityInitialized, queryWMI, queryWMI, setInstanceClass, setWmiTimeout, switchComThreading, unInitCOM
-
Constructor Details
-
WmiNoComInitQueryHandler
public WmiNoComInitQueryHandler()
-
-
Method Details
-
initCOM
public boolean initCOM()Don't initialize COM, despite the method name. Overrides the superclassWmiQueryHandler.initCOM()
method to bypass COM initialization.- Overrides:
initCOM
in classoshi.util.platform.windows.WmiQueryHandler
-