|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jinterop.dcom.core.JIProgId
public class JIProgId
Wrapper class used to define user friendly ProgID
.
Definition from MSDN:
A ProgID, or programmatic identifier, is a registry entry that can be associated
with a CLSID. The format of a ProgID is
This class uses the WINREG
service to get the mapping between the ProgId
and the CLSID
.
The WINREG
package of j-Interop is capable of querying the Windows registry in a
platform independent way using SMB. The internal database is looked up first before
making calls to WINREG
service.
Method Summary | |
---|---|
JIClsid |
getCorrespondingCLSID()
Returns the CLSID for this ProgId . |
boolean |
isAutoRegistrationSet()
Returns the status of the auto registration flag for the component identified by this object. |
void |
setAutoRegistration(boolean autoRegister)
Indicates to the framework, if Windows Registry settings for DLL\OCX component identified by this object should be modified to add a Surrogate
automatically. |
static JIProgId |
valueOf(java.lang.String progId)
Factory method returning an instance of this class. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void setAutoRegistration(boolean autoRegister)
Surrogate
automatically. A Surrogate
is a process which provides resources
such as memory and cpu for a DLL\OCX to execute.
autoRegister
- true
if auto registration should be done by the framework.public boolean isAutoRegistrationSet()
true
if the auto registration flag is set.public static JIProgId valueOf(java.lang.String progId)
progId
- user-friendly string representation such as "Excel.Application"
public JIClsid getCorrespondingCLSID() throws JIException
CLSID
for this ProgId
.
JIException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |