org.jinterop.dcom.core
Class JIClsid

java.lang.Object
  extended by org.jinterop.dcom.core.JIClsid

public class JIClsid
extends java.lang.Object

Wrapper for class identifier to a COM Object.

Definition from MSDN: A universally unique identifier (UUID) that identifies a type of Component Object Model (COM) object. Each type of COM object item has its CLSID in the registry so that it can be loaded and used by other applications. For example, a spreadsheet may create worksheet items, chart items, and macrosheet items. Each of these item types has its own CLSID that uniquely identifies it to the system.

For example Microsoft Office Excel Application has clsid of "00024500-0000-0000-C000-000000000046".

Since:
1.0

Method Summary
 java.lang.String getCLSID()
          String representation of the wrapped class identifier.
 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 JIClsid valueOf(java.lang.String uuid)
          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

setAutoRegistration

public 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. A Surrogate is a process which provides resources such as memory and cpu for a DLL\OCX to execute.

Parameters:
autoRegister - true if auto registration should be done by the framework.

isAutoRegistrationSet

public boolean isAutoRegistrationSet()
Returns the status of the auto registration flag for the component identified by this object.

Returns:
true if the auto registration flag is set.

valueOf

public static JIClsid valueOf(java.lang.String uuid)
Factory method returning an instance of this class.

Parameters:
uuid - - clsid of the form "00000000-0000-0000-0000-000000000000"
Returns:
- instance of JIClsid

getCLSID

public java.lang.String getCLSID()
String representation of the wrapped class identifier.

Returns:
string of the form "00000000-0000-0000-0000-000000000000"