(file) Return to JMPIProvider.cpp CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / ProviderManager2 / JMPI

Diff for /pegasus/src/Pegasus/ProviderManager2/JMPI/JMPIProvider.cpp between version 1.1 and 1.4

version 1.1, 2004/04/30 10:27:25 version 1.4, 2004/08/19 12:58:43
Line 36 
Line 36 
 #include <Pegasus/ProviderManager2/JMPI/JMPIProviderModule.h> #include <Pegasus/ProviderManager2/JMPI/JMPIProviderModule.h>
  
 PEGASUS_NAMESPACE_BEGIN PEGASUS_NAMESPACE_BEGIN
   PEGASUS_USING_STD;
  
  
 // set current operations to 1 to prevent an unload // set current operations to 1 to prevent an unload
Line 91 
Line 92 
  
     _cimom_handle=&cimom;     _cimom_handle=&cimom;
     JvmVector *jv;     JvmVector *jv;
     std::cerr<<"--- JMPIProvider::Initialize()"<<std::endl;  #ifdef PEGASUS_DEBUG
       if (JMPIjvm::trace)
          cerr<<"--- JMPIProvider::Initialize()"<<endl;
   #endif
   
     JNIEnv *env=JMPIjvm::attachThread(&jv);     JNIEnv *env=JMPIjvm::attachThread(&jv);
   
     jmethodID id=env->GetMethodID((jclass)jProviderClass,"initialize",     jmethodID id=env->GetMethodID((jclass)jProviderClass,"initialize",
        "(Lorg/pegasus/jmpi/CIMOMHandle;)V");        "(Lorg/pegasus/jmpi/CIMOMHandle;)V");
     JMPIjvm::checkException(env);     JMPIjvm::checkException(env);
     jobject hdl=env->NewObject(jv->CIMOMHandleClassRef,jv->CIMOMHandleNewI,(jint)&cimom);  
       jstring jName=env->NewStringUTF(_name.getCString());
       JMPIjvm::checkException(env);
   
       jobject hdl=env->NewObject(jv->CIMOMHandleClassRef,jv->CIMOMHandleNewI,(jint)&cimom,jName);
     env->CallVoidMethod((jobject)jProvider,id,hdl);     env->CallVoidMethod((jobject)jProvider,id,hdl);
   
     JMPIjvm::detachThread();     JMPIjvm::detachThread();
  
     _status = INITIALIZED;     _status = INITIALIZED;


Legend:
Removed from v.1.1  
changed lines
  Added in v.1.4

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2