|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jgd.comapi.ComponentRegistrator
public class ComponentRegistrator
Class for (un)registering the GDS Java API as components for Google Desktop This class - as well as the Query class - uses the Jacob Java-COM -bridge See http://desktop.google.com/queryapi.html#registering See http://sourceforge.net/projects/jacob-project/ This class could be extended to support registration of other component-types (indexing, etc.), as well as the current support for registering query-components
Field Summary | |
---|---|
static java.lang.String |
DEFAULT_GUID
|
protected java.lang.String |
jacobDLLPath
|
static java.lang.String |
LIB_PATH_KEY
|
protected static org.apache.commons.logging.Log |
log
|
protected java.lang.String |
myGUID
|
Constructor Summary | |
---|---|
ComponentRegistrator(java.lang.String jacobDLLPath)
Constructor that uses the default GUID |
|
ComponentRegistrator(java.lang.String jacobDLLPath,
java.lang.String GUID)
|
Method Summary | |
---|---|
protected static void |
addLibraryPath(java.lang.String newPath)
Method for adding some (new) path to the current java.library.path |
java.lang.String |
getGUID()
|
java.lang.String[] |
getQueryComponentDescriptionArray()
See the Component Registration Code Template under http://desktop.google.com/indexapi.html#registering for an example of C++ code with description-array |
java.lang.String |
registerQueryComponent(java.lang.String GUID)
See http://desktop.google.com/queryapi.html |
java.lang.String |
toString()
|
void |
unregisterQueryComponent(java.lang.String GUID)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static org.apache.commons.logging.Log log
public static final java.lang.String LIB_PATH_KEY
public static final java.lang.String DEFAULT_GUID
protected java.lang.String jacobDLLPath
protected java.lang.String myGUID
Constructor Detail |
---|
public ComponentRegistrator(java.lang.String jacobDLLPath)
libPath
- Path to where the jacob.dll -file is locatedjgd.comapi.ComponentRegistrator(String,String)
public ComponentRegistrator(java.lang.String jacobDLLPath, java.lang.String GUID)
libPath
- Path to where the jacob.dll -file is locatedGUID
- Unique GUID to be used for (un)registering components
using this classMethod Detail |
---|
protected static void addLibraryPath(java.lang.String newPath)
public java.lang.String getGUID()
public java.lang.String[] getQueryComponentDescriptionArray()
public java.lang.String registerQueryComponent(java.lang.String GUID)
GUID
- the GUID of the query component to register with GD
QueryCOM
public void unregisterQueryComponent(java.lang.String GUID)
GUID
- the GUID of the query -component to unregister from GDpublic java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |