|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.telelogic.rhapsody.core.RhapsodyAppServer
public class RhapsodyAppServer
The RhapsodyAppServer class contains methods relating to accessing an instance of Rhapsody.
Field Summary | |
---|---|
protected static com.telelogic.rhapsody.core.JavaPluginsManager |
m_javaPluginsManager
For internal use only. |
Constructor Summary | |
---|---|
RhapsodyAppServer()
|
Method Summary | |
---|---|
static IRPApplication |
actualCreateRhapsodyApplicationDllServer()
For internal use only. |
static IRPApplication |
actualCreateUninitializedRhapsodyApplicationDllServer()
For internal use only. |
static void |
actualInitializeRhapsodyApplicationDllServer(long comInterface)
For internal use only. |
static boolean |
addToClassPath(java.lang.String cls)
Adds one or more classes to the classpath. |
static boolean |
addToLibPath(java.lang.String libPath)
Adds a directory to the libpath. |
static IRPModelElement |
attachToIRPModelElement(long nativeRPModelElement)
For internal use only. |
static IRPApplication |
attachToRhapsodyApplication(long nativeRhapsodyApp)
For internal use only. |
static void |
CloseSession()
For internal use only. |
static void |
CloseSessionNative()
For internal use only. |
protected static void |
createJavaPluginManager(IRPApplication rhpApp)
For internal use only. |
static IRPApplication |
createRhapsodyApplication()
Creates a new instance of Rhapsody and provides access to it. |
static IRPApplication |
createRhapsodyApplicationDllServer()
For internal use only. |
static IRPApplication |
createUninitializedRhapsodyApplicationDllServer()
For internal use only. |
static java.lang.Class |
findClass(java.lang.String className)
For internal use only. |
static IRPApplication |
getActiveRhapsodyApplication()
Accesses the currently running instance of Rhapsody. |
static IRPApplication |
getActiveRhapsodyApplicationByID(java.lang.String serverName)
Accesses the instance of Rhapsody that is registered in the ROT (Running Object Table) with the specified ID. |
static java.util.List |
getActiveRhapsodyApplicationIDList()
Returns a list of the strings representing the Rhapsody instances currently registered in the ROT (Running Object Table). |
static com.telelogic.rhapsody.core.JavaPluginsManager |
getJavaPluginManager()
For internal use only. |
static void |
initializeRhapsodyApplicationDllServer(IRPApplication rhpApp)
For internal use only. |
static boolean |
registerAsActiveObject(IRPApplication app)
For internal use only. |
static void |
resetCurrentContextClassFactory()
For internal use only. |
protected static void |
setClassFactory(RPExtendedRPClassesFactory factory,
boolean isDefaultFactory)
For internal use only. |
static void |
setCollectionCachingMode(boolean mode)
For internal use only. |
static void |
setCollectionCashingMode(boolean mode)
For internal use only. |
static void |
setCurrentContextClassFactory(RPExtendedRPClassesFactory factory)
For internal use only. |
static void |
setDefultClassFactory(RPExtendedRPClassesFactory factory)
For internal use only. |
static void |
setDelayedReleaseInterfacesMode(boolean mode)
For internal use only. |
static void |
setLogFile(java.lang.String logFile)
Specifies a log file to use for recording API actions. |
static void |
setReleaseInterfacesOnGBMode(boolean mode)
For internal use only. |
static boolean |
unRegisterAsActiveObject(IRPApplication app)
For internal use only. |
static void |
writeToLog(java.lang.String msg)
Writes the specified text to the Rhapsody API log file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static com.telelogic.rhapsody.core.JavaPluginsManager m_javaPluginsManager
Constructor Detail |
---|
public RhapsodyAppServer()
Method Detail |
---|
public static boolean addToClassPath(java.lang.String cls)
cls
- the path and name of the class or .jar file to add to the classpath, for example, "D:\\myclasses org.mypackage.MyClass" or "D:\\myclasses\\libraryFiles.jar"
public static boolean addToLibPath(java.lang.String libPath)
libPath
- the directory to add to the libpath
public static IRPModelElement attachToIRPModelElement(long nativeRPModelElement)
public static IRPApplication attachToRhapsodyApplication(long nativeRhapsodyApp)
public static void CloseSession()
public static void CloseSessionNative()
public static IRPApplication createRhapsodyApplication()
public static IRPApplication createRhapsodyApplicationDllServer()
public static IRPApplication actualCreateRhapsodyApplicationDllServer()
public static IRPApplication createUninitializedRhapsodyApplicationDllServer()
public static IRPApplication actualCreateUninitializedRhapsodyApplicationDllServer()
public static void initializeRhapsodyApplicationDllServer(IRPApplication rhpApp)
public static void actualInitializeRhapsodyApplicationDllServer(long comInterface)
public static java.lang.Class findClass(java.lang.String className)
public static IRPApplication getActiveRhapsodyApplication()
static IRPApplication app = RhapsodyAppServer.getActiveRhapsodyApplication();
if(app != null) {
app.createNewProject("d:\\temp\\_sample_code", "Class_Tricks");
IRPProject prj = app.openProject("d:\\temp\\_sample_code\\Class_Tricks.rpy");
}
public static java.util.List getActiveRhapsodyApplicationIDList()
public static IRPApplication getActiveRhapsodyApplicationByID(java.lang.String serverName)
serverName
- the ID of the Rhapsody instance in the ROT, as returned by the method getActiveRhapsodyApplicationIDList. The strings used for instances of Rhapsody take the form Rhapsody.Release:PID, for example, "Rhapsody.8.0.2.0:12236"
public static void resetCurrentContextClassFactory()
protected static void setClassFactory(RPExtendedRPClassesFactory factory, boolean isDefaultFactory)
public static void setCollectionCachingMode(boolean mode)
public static void setCollectionCashingMode(boolean mode)
public static void setCurrentContextClassFactory(RPExtendedRPClassesFactory factory)
public static void setDefultClassFactory(RPExtendedRPClassesFactory factory)
public static void setDelayedReleaseInterfacesMode(boolean mode)
public static void setLogFile(java.lang.String logFile)
logFile
- the full path of the file to use as the log file, for example, "D:\\temp\\api_log_file.txt".public static void writeToLog(java.lang.String msg)
msg
- the text to write to the log filepublic static void setReleaseInterfacesOnGBMode(boolean mode)
protected static void createJavaPluginManager(IRPApplication rhpApp)
public static boolean registerAsActiveObject(IRPApplication app)
public static boolean unRegisterAsActiveObject(IRPApplication app)
public static com.telelogic.rhapsody.core.JavaPluginsManager getJavaPluginManager()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |