The LicenseMgr Class of the com.ms.com package works with the ILicenseMgr interface to enable you to use licensed Component Object Model (COM) components or controls in your Java application.
public final class LicenseMgr implements IUnknown,ILicenseMgr { // Methods public native IUnknown createFromPackage(int index, IUnknown punkOuter, int ctxFlags); public native IUnknown createInstance(String clsid, IUnknown punkOuter, int ctxFlags); public native IUnknown createWithLic(String lic, String clsid, IUnknown punkOuter, int ctxFlags); public native void setPackage(String url); }
In the LicenseMgr class, methods are not called directly. Instead, you create an instance of LicenseMgr and use the ILicenseMgr interface to manipulate the instance, as in the following example:
ILicenseMgr licmgr = (ILicenseMgr)new LicenseMgr(); // use licmgr interface
For more information on how to use licensed COM components, see the ILicenseMgr interface.