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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • WmiNoComInitQueryHandler

      public WmiNoComInitQueryHandler()
  • Method Details

    • initCOM

      public boolean initCOM()
      Don't initialize COM, despite the method name. Overrides the superclass WmiQueryHandler.initCOM() method to bypass COM initialization.
      Overrides:
      initCOM in class oshi.util.platform.windows.WmiQueryHandler