|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.teamdev.xpcom.XPCOMManager
public class XPCOMManager
Entry point of XCOM technology
| Method Summary | ||
|---|---|---|
static XPCOMManager |
getInstance()
|
|
|
getService(java.lang.String contractID,
java.lang.Class<T> intefaceClass)
Returns instance of XPCOM service by contract ID and unique interface id |
|
|
getService(java.lang.String cid,
java.lang.String uuid)
Returns instance of XPCOM by CID |
|
static java.lang.String |
guessCID(java.lang.Class<? extends org.mozilla.interfaces.nsISupports> c)
|
|
static java.lang.String |
guessIID(java.lang.Class<? extends org.mozilla.interfaces.nsISupports> c)
|
|
|
newComponent(java.lang.String contractID,
java.lang.Class<T> intefaceClass)
Creates instance of XPCOM component using contract ID and unique interface id Typical usage: |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static final XPCOMManager getInstance()
public <T extends org.mozilla.interfaces.nsISupports> T getService(java.lang.String contractID,
java.lang.Class<T> intefaceClass)
T - the xpcom service interface typecontractID - the XPCOM Mozilla class contract id * @param intefaceClass the
T class
org.mozilla.xpcom.XPCOMException - if XPCOM throws the exception when trying to refer the
service
public <T extends org.mozilla.interfaces.nsISupports> T getService(java.lang.String cid,
java.lang.String uuid)
T - the xpcom service interface typecid - the service class identifieruuid - the unique XPCOM interface identifier
public <T extends org.mozilla.interfaces.nsISupports> T newComponent(java.lang.String contractID,
java.lang.Class<T> intefaceClass)
nsIWebBrowser webBrowser = XPCOMManager.getInstance().newComponent(
"@mozilla.org/embedding/browser/nsWebBrowser;1", nsIWebBrowser.class);
T - the xpcom component interface typecontractID - the XPCOM Mozilla class contract idintefaceClass - the T class
org.mozilla.xpcom.XPCOMException - if XPCOM throws the exception when trying to refer the
servicepublic static java.lang.String guessIID(java.lang.Class<? extends org.mozilla.interfaces.nsISupports> c)
public static java.lang.String guessCID(java.lang.Class<? extends org.mozilla.interfaces.nsISupports> c)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||