if KernelBasis.getSSLMode():
if __service__ is None:
salome.salome_init()
- __service__ = salome.lcc.FindOrLoadComponent(containerName, "PVSERVER")
- else:
- if __serviceLoader__ is None:
- __serviceLoader__ = PVServer_ServiceLoader()
- if __service__ is None:
- import PVSERVER
- ior = __serviceLoader__.findOrLoadService(containerName)
- obj = getORB().string_to_object( ior )
- __service__ = obj._narrow(PVSERVER.PVSERVER)
- pass
+ if __serviceLoader__ is None:
+ __serviceLoader__ = PVServer_ServiceLoader()
+ if __service__ is None:
+ import PVSERVER
+ ior = __serviceLoader__.findOrLoadService(containerName)
+ obj = getORB().string_to_object( ior )
+ __service__ = obj._narrow(PVSERVER.PVSERVER)
+ pass
return __service__
###
#include <SALOME_NamingService.hxx>
#include <utilities.h> // MESSAGE() macro
#include <SALOMEconfig.h>
+#include "KernelBasis.hxx"
+
#include CORBA_CLIENT_HEADER(SALOME_ContainerManager)
PVServer_ServiceLoader::PVServer_ServiceLoader():
- myLcc( 0 )
+ myLcc( nullptr )
{
try
{
- myLcc = new SALOME_LifeCycleCORBA();
+ SALOME_NamingService_Abstract *ns(nullptr);
+ if( getSSLMode() )
+ {
+ mySSLNS.reset( new SALOME_Fake_NamingService );
+ ns = mySSLNS.get();
+ }
+ myLcc = new SALOME_LifeCycleCORBA(ns);
}
catch(...)
{
#define PVSERVERSERVICELOADER_H_
#include "PVServerServiceLoader.h"
+#include "SALOME_Fake_NamingService.hxx"
#include <SALOMEconfig.h>
#include CORBA_CLIENT_HEADER(SALOME_Component)
#include <string>
#include <exception>
+#include <memory>
class SALOME_LifeCycleCORBA;
private:
SALOME_LifeCycleCORBA* myLcc;
+ std::unique_ptr<SALOME_Fake_NamingService> mySSLNS;
};
#endif /* PVSERVERSERVICELOADER_H_ */