Skip navigation links
JNA API 4.5.2

Class ObjectFactory

  • Direct Known Subclasses:

    public class ObjectFactory
    extends java.lang.Object
    Factory keeps track of COM objects - all objects created with this factory can be disposed by calling disposeAll().
    • Constructor Detail

      • ObjectFactory

        public ObjectFactory()
    • Method Detail

      • finalize

        protected void finalize()
                         throws java.lang.Throwable
        finalize in class java.lang.Object
      • getRunningObjectTable

        public IRunningObjectTable getRunningObjectTable()
        CoInitialize must be called be fore this method. Either explicitly or implicitly via other methods.
        running object table
      • createProxy

        public <T> T createProxy(java.lang.Class<T> comInterface,
                                 IDispatch dispatch)
        Creates a ProxyObject for the given interface and IDispatch pointer.
      • createObject

        public <T> T createObject(java.lang.Class<T> comInterface)
        Creates a new COM object (CoCreateInstance) for the given progId and returns a ProxyObject for the given interface.
      • fetchObject

        public <T> T fetchObject(java.lang.Class<T> comInterface)
        Gets and existing COM object (GetActiveObject) for the given progId and returns a ProxyObject for the given interface.
      • register

        public void register(ProxyObject proxyObject)
      • unregister

        public void unregister(ProxyObject proxyObject)
      • disposeAll

        public void disposeAll()
      • getLCID

        public WinDef.LCID getLCID()
        Retrieve the LCID to be used for COM calls.
        If setLCID is not called retrieves the users default locale, else the set LCID.
      • setLCID

        public void setLCID(WinDef.LCID value)
        Set the LCID to use for COM calls.
        value - override LCID. NULL resets to default.
JNA API 4.5.2

Copyright © 2007-2017 Timothy Wall. All Rights Reserved.