}
/*!Constructor.*/
-SalomeApp_Application::SalomeApp_Application()
- : LightApp_Application(),
- myIsCloseFromExit( false ),
- myToIgnoreMessages( false )
+SalomeApp_Application::SalomeApp_Application(SALOME_NamingService_Abstract *ns):myIsCloseFromExit( false ),myToIgnoreMessages( false )
{
- _ns.reset(new SALOME_NamingService(orb()));
+ if(!ns)
+ _ns.reset(new SALOME_NamingService(orb()));
+ else
+ _ns.reset(ns);
}
/*!Destructor.
enum { LoadStudyId = LightApp_Application::OpenStudyId + 1, NewAndScriptId };
public:
- SalomeApp_Application();
+ SalomeApp_Application(SALOME_NamingService_Abstract *ns = nullptr);
virtual ~SalomeApp_Application();
virtual void updateObjectBrowser( const bool = true );
return _root_context;
}
+#include "SALOME_KernelServices.hxx"
+
+void NewStyleNS::defineDefaultSALOMEKERNELNamingService()
+{
+ KERNEL::assignNamingServiceSL();
+}
+
Engines_Container_i *NewStyleNS::activateContainer(CORBA::ORB_var orb, PortableServer::POA_var poa, int argc, char **argv)
{
return KERNEL::getContainerSA();
CORBA::Object_ptr Resolve(const char* Path) { return _NS.Resolve(Path); }
RealNS *getNS() { return &_NS; }
Engines_Container_i *activateContainer(CORBA::ORB_var orb, PortableServer::POA_var poa, int argc, char** argv);
+ static void defineDefaultSALOMEKERNELNamingService() { /* nothing to do by default true NamingService server is considered */ }
static void activateContainerManager(CORBA::ORB_var orb);
static void activateSession(CORBA::ORB_var orb, PortableServer::POA_var poa, QMutex *GUIMutex, QWaitCondition *GUILauncher, int argc, char ** argv);
static void activateSALOMEDS(CORBA::ORB_var orb, PortableServer::POA_var poa);
CORBA::Object_ptr Resolve(const char* Path) { return _NS.Resolve(Path); }
RealNS *getNS() { return &_NS; }
Engines_Container_i *activateContainer(CORBA::ORB_var orb, PortableServer::POA_var poa, int argc, char** argv);
+ static void defineDefaultSALOMEKERNELNamingService();
static void activateContainerManager(CORBA::ORB_var orb);
static void activateSession(CORBA::ORB_var orb, PortableServer::POA_var poa, QMutex *GUIMutex, QWaitCondition *GUILauncher, int argc, char ** argv);
static void activateSALOMEDS(CORBA::ORB_var orb, PortableServer::POA_var poa);