|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jniwrapper.win32.tools.RegisterDispatchComServer
This class is responsible for the java COM server registration in the Windows Registry. It allows to register servers in the Console Mode or at the program's runtime.
Usage: java [-classpath including JNIWrapper library] [-options] com.jniwrapper.win32.tools.RegisterDispatchComServer ServerClassName
Options:
Sample: java -cp jniwrap.jar;comfyj.jar -Dclasspath=C:/JavaComServer;C:/JavaComServer/jniwrap.jar -Djvm.path=C:/j2sdk/bin/javaw.exe com.jniwrapper.win32.tools.RegisterDispatchComServer ComServer1
Nested Class Summary | |
static class |
RegisterDispatchComServer.ComServerDescriptor
This class is the descriptor of a Java COM server. |
Method Summary | |
static boolean |
isRegistered(CLSID clsid)
Returns true if the Java COM server is registered, otherwise false |
static boolean |
isRegisteredForAllUsers(CLSID clsid)
Returns true if the Java COM server registered for all users, otherwise false |
static boolean |
isRegisteredForCurrentUser(CLSID clsid)
Returns true if the Java COM server registered for current user, otherwise false |
static void |
main(java.lang.String[] args)
|
static void |
registerComServer(RegisterDispatchComServer.ComServerDescriptor descriptor,
boolean currentUserOnly,
java.util.List warnings)
Registers the specified Java COM server with ability to specify whesere the COM server is for current user only or not |
static void |
registerComServer(RegisterDispatchComServer.ComServerDescriptor descriptor,
java.util.List warnings)
Registers the specified Java COM server for all users by default |
static void |
unregisterComServer(CLSID clsid)
Unregisters the Java COM server specified by the CLSID |
static void |
unregisterComServer(CLSID clsid,
boolean currentUserOnly)
Unregisters the Java COM server specified by the CLSID with ability to specify whesere the COM server is for current user only or not |
static void |
unregisterComServer(RegisterDispatchComServer.ComServerDescriptor descriptor)
Unregisters the specified Java COM server |
static void |
unregisterComServer(RegisterDispatchComServer.ComServerDescriptor descriptor,
boolean currentUserOnly)
Unregisters the specified Java COM server with ability to specify whesere the COM server is for current user only or not |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static void registerComServer(RegisterDispatchComServer.ComServerDescriptor descriptor, boolean currentUserOnly, java.util.List warnings)
descriptor
- Java COM server descriptorcurrentUserOnly
- true if the COM server is for current user only and false if notpublic static void registerComServer(RegisterDispatchComServer.ComServerDescriptor descriptor, java.util.List warnings)
descriptor
- Java COM server descriptorpublic static void unregisterComServer(RegisterDispatchComServer.ComServerDescriptor descriptor, boolean currentUserOnly)
descriptor
- Java COM server descriptorcurrentUserOnly
- true if the COM server is registered for current user only and false if notpublic static void unregisterComServer(RegisterDispatchComServer.ComServerDescriptor descriptor)
descriptor
- Java COM server descriptorpublic static void unregisterComServer(CLSID clsid, boolean currentUserOnly)
clsid
- CLSID of the Java COM servercurrentUserOnly
- true if the COM server is registered for current user only and false if notpublic static void unregisterComServer(CLSID clsid)
clsid
- CLSID of the Java COM serverpublic static boolean isRegisteredForCurrentUser(CLSID clsid)
clsid
- CLSID of the Java COM server
public static boolean isRegisteredForAllUsers(CLSID clsid)
clsid
- CLSID of the Java COM server
public static boolean isRegistered(CLSID clsid)
clsid
- CLSID of the Java COM server
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |