PortableServer::POA_ptr poa,
PortableServer::ObjectId * contId,
const char *instanceName,
- const char *interfaceName) :
- Engines_Component_i(orb, poa, contId, instanceName, interfaceName,1,true) {
+ const char *interfaceName, bool withRegistry) :
+ Engines_Component_i(orb, poa, contId, instanceName, interfaceName,1,withRegistry) {
MESSAGE("AddComponent_Impl::AddComponent_Impl this " << hex << this << dec
<< "activate object instanceName("
<< instanceName << ") interfaceName(" << interfaceName << ")" )
MESSAGE("AddComponentEngine_factory AddComponentEngine ("
<< instanceName << "," << interfaceName << "," << _getpid() << ")");
#endif
- AddComponent_Impl * myAddComponent
- = new AddComponent_Impl(orb, poa, contId, instanceName, interfaceName);
+ CORBA::Object_var o = poa->id_to_reference(*contId);
+ Engines::Container_var cont = Engines::Container::_narrow(o);
+ AddComponent_Impl * myAddComponent = nullptr;
+ if(cont->is_SSL_mode())
+ {
+ myAddComponent = new AddComponent_Impl_SSL(orb, poa, contId, instanceName, interfaceName);
+ }
+ else
+ {
+ myAddComponent = new AddComponent_Impl_No_SSL(orb, poa, contId, instanceName, interfaceName);
+ }
return myAddComponent->getId() ;
}
}
PortableServer::POA_ptr poa,
PortableServer::ObjectId * contId,
const char *instanceName,
- const char *interfaceName);
+ const char *interfaceName, bool withRegistry);
virtual ~AddComponent_Impl();
};
+class ADDCOMPONENTENGINE_EXPORT AddComponent_Impl_SSL : public AddComponent_Impl
+{
+public:
+ AddComponent_Impl_SSL( CORBA::ORB_ptr orb,
+ PortableServer::POA_ptr poa,
+ PortableServer::ObjectId * contId,
+ const char *instanceName,
+ const char *interfaceName):AddComponent_Impl(orb,poa,contId,instanceName,interfaceName,false) { }
+};
+
+class ADDCOMPONENTENGINE_EXPORT AddComponent_Impl_No_SSL : public AddComponent_Impl
+{
+public:
+ AddComponent_Impl_No_SSL( CORBA::ORB_ptr orb,
+ PortableServer::POA_ptr poa,
+ PortableServer::ObjectId * contId,
+ const char *instanceName,
+ const char *interfaceName):AddComponent_Impl(orb,poa,contId,instanceName,interfaceName,true) { }
+};
+
extern "C"
ADDCOMPONENTENGINE_EXPORT
PortableServer::ObjectId * AddComponentEngine_factory
PortableServer::POA_ptr poa,
PortableServer::ObjectId * contId,
const char *instanceName,
- const char *interfaceName) :
- Engines_Component_i(orb, poa, contId, instanceName, interfaceName,1,true) {
+ const char *interfaceName, bool withRegistry) :
+ Engines_Component_i(orb, poa, contId, instanceName, interfaceName,1,withRegistry) {
MESSAGE("DataStreamFactory_Impl::DataStreamFactory_Impl this " << hex << this << dec
<< "activate object instanceName("
<< instanceName << ") interfaceName(" << interfaceName << ")" )
MESSAGE("DataStreamFactoryEngine_factory DataStreamFactoryEngine ("
<< instanceName << "," << interfaceName << "," << _getpid() << ")");
#endif
- DataStreamFactory_Impl * myDataStreamFactory
- = new DataStreamFactory_Impl(orb, poa, contId, instanceName, interfaceName);
+ DataStreamFactory_Impl * myDataStreamFactory = nullptr;
+ CORBA::Object_var o = poa->id_to_reference(*contId);
+ Engines::Container_var cont = Engines::Container::_narrow(o);
+ if(cont->is_SSL_mode())
+ {
+ myDataStreamFactory = new DataStreamFactory_Impl_SSL(orb, poa, contId, instanceName, interfaceName);
+ }
+ else
+ {
+ myDataStreamFactory = new DataStreamFactory_Impl_No_SSL(orb, poa, contId, instanceName, interfaceName);
+ }
return myDataStreamFactory->getId() ;
}
}
PortableServer::POA_ptr poa,
PortableServer::ObjectId * contId,
const char *instanceName,
- const char *interfaceName);
+ const char *interfaceName, bool withRegistry);
virtual ~DataStreamFactory_Impl();
};
+class DATASTREAMFACTORYENGINE_EXPORT DataStreamFactory_Impl_SSL : public DataStreamFactory_Impl
+{
+public:
+ DataStreamFactory_Impl_SSL( CORBA::ORB_ptr orb,
+ PortableServer::POA_ptr poa,
+ PortableServer::ObjectId * contId,
+ const char *instanceName,
+ const char *interfaceName):DataStreamFactory_Impl(orb,poa,contId,instanceName,interfaceName,false) { }
+};
+
+class DATASTREAMFACTORYENGINE_EXPORT DataStreamFactory_Impl_No_SSL : public DataStreamFactory_Impl
+{
+public:
+ DataStreamFactory_Impl_No_SSL( CORBA::ORB_ptr orb,
+ PortableServer::POA_ptr poa,
+ PortableServer::ObjectId * contId,
+ const char *instanceName,
+ const char *interfaceName):DataStreamFactory_Impl(orb,poa,contId,instanceName,interfaceName,true) { }
+};
+
extern "C"
DATASTREAMFACTORYENGINE_EXPORT
PortableServer::ObjectId * DataStreamFactoryEngine_factory
PortableServer::POA_ptr poa,
PortableServer::ObjectId * contId,
const char *instanceName,
- const char *interfaceName) :
- Engines_Component_i(orb, poa, contId, instanceName, interfaceName,1,true)
+ const char *interfaceName, bool withRegistry) :
+ Engines_Component_i(orb, poa, contId, instanceName, interfaceName,1,withRegistry)
{
// MESSAGE("DivComponentEngine::DivComponentEngine activate object instanceName("
// << instanceName << ") interfaceName(" << interfaceName << ")" )
{
MESSAGE("DivComponentEngine_factory DivComponentEngine ("
<< instanceName << "," << interfaceName << ")");
- DivComponentEngine * myDivComponent
- = new DivComponentEngine(orb, poa, contId, instanceName, interfaceName);
+ CORBA::Object_var o = poa->id_to_reference(*contId);
+ Engines::Container_var cont = Engines::Container::_narrow(o);
+ DivComponentEngine * myDivComponent = nullptr;
+ if(cont->is_SSL_mode())
+ {
+ myDivComponent = new DivComponentEngine_SSL(orb, poa, contId, instanceName, interfaceName);
+ }
+ else
+ {
+ myDivComponent = new DivComponentEngine_No_SSL(orb, poa, contId, instanceName, interfaceName);
+ }
return myDivComponent->getId() ;
}
}
PortableServer::POA_ptr poa,
PortableServer::ObjectId * contId,
const char *instanceName,
- const char *interfaceName);
+ const char *interfaceName, bool withRegistry);
virtual ~DivComponentEngine();
};
+class DIVCOMPONENTENGINE_EXPORT DivComponentEngine_SSL : public DivComponentEngine
+{
+public:
+ DivComponentEngine_SSL( CORBA::ORB_ptr orb,
+ PortableServer::POA_ptr poa,
+ PortableServer::ObjectId * contId,
+ const char *instanceName, const char *interfaceName):DivComponentEngine(orb,poa,contId,instanceName,interfaceName,false) { }
+};
+
+class DIVCOMPONENTENGINE_EXPORT DivComponentEngine_No_SSL : public DivComponentEngine
+{
+public:
+ DivComponentEngine_No_SSL( CORBA::ORB_ptr orb,
+ PortableServer::POA_ptr poa,
+ PortableServer::ObjectId * contId,
+ const char *instanceName, const char *interfaceName):DivComponentEngine(orb,poa,contId,instanceName,interfaceName,true) { }
+};
+
extern "C"
DIVCOMPONENTENGINE_EXPORT
PortableServer::ObjectId * DivComponentEngine_factory
PortableServer::POA_ptr poa,
PortableServer::ObjectId * contId,
const char *instanceName,
- const char *interfaceName) :
- Engines_Component_i(orb, poa, contId, instanceName, interfaceName,1,true)
+ const char *interfaceName, bool withRegistry) :
+ Engines_Component_i(orb, poa, contId, instanceName, interfaceName,1,withRegistry)
{
// MESSAGE("MulComponentEngine::MulComponentEngine activate object instanceName("
// << instanceName << ") interfaceName(" << interfaceName << ")" )
{
MESSAGE("MulComponentEngine_factory MulComponentEngine ("
<< instanceName << "," << interfaceName << ")");
- MulComponentEngine * myMulComponent
- = new MulComponentEngine(orb, poa, contId, instanceName, interfaceName);
+ MulComponentEngine * myMulComponent = nullptr;
+ CORBA::Object_var o = poa->id_to_reference(*contId);
+ Engines::Container_var cont = Engines::Container::_narrow(o);
+ if(cont->is_SSL_mode())
+ {
+ myMulComponent = new MulComponentEngine_SSL(orb, poa, contId, instanceName, interfaceName);
+ }
+ else
+ {
+ myMulComponent = new MulComponentEngine_No_SSL(orb, poa, contId, instanceName, interfaceName);
+ }
return myMulComponent->getId() ;
}
}
PortableServer::POA_ptr poa,
PortableServer::ObjectId * contId,
const char *instanceName,
- const char *interfaceName);
+ const char *interfaceName, bool withRegistry);
virtual ~MulComponentEngine();
};
+class MULCOMPONENTENGINE_EXPORT MulComponentEngine_SSL : public MulComponentEngine
+{
+public:
+ MulComponentEngine_SSL(CORBA::ORB_ptr orb,
+ PortableServer::POA_ptr poa,
+ PortableServer::ObjectId * contId,
+ const char *instanceName,
+ const char *interfaceName):MulComponentEngine(orb,poa,contId,instanceName,interfaceName,false) { }
+};
+
+class MULCOMPONENTENGINE_EXPORT MulComponentEngine_No_SSL : public MulComponentEngine
+{
+public:
+ MulComponentEngine_No_SSL(CORBA::ORB_ptr orb,
+ PortableServer::POA_ptr poa,
+ PortableServer::ObjectId * contId,
+ const char *instanceName,
+ const char *interfaceName):MulComponentEngine(orb,poa,contId,instanceName,interfaceName,true) { }
+};
+
extern "C"
MULCOMPONENTENGINE_EXPORT
PortableServer::ObjectId * MulComponentEngine_factory
PortableServer::POA_ptr poa,
PortableServer::ObjectId * contId,
const char *instanceName,
- const char *interfaceName) :
- Engines_Component_i(orb, poa, contId, instanceName, interfaceName,1,true)
+ const char *interfaceName, bool withRegistry) :
+ Engines_Component_i(orb, poa, contId, instanceName, interfaceName,1,withRegistry)
{
MESSAGE("SIGNALSComponentEngine::SIGNALSComponentEngine activate object instanceName("
<< instanceName << ") interfaceName(" << interfaceName << ")" )
{
MESSAGE("SIGNALSComponentEngine_factory SIGNALSComponentEngine ("
<< instanceName << "," << interfaceName << ")");
- SIGNALSComponentEngine * mySIGNALSComponent
- = new SIGNALSComponentEngine(orb, poa, contId, instanceName, interfaceName);
+ SIGNALSComponentEngine * mySIGNALSComponent = nullptr;
+ CORBA::Object_var o = poa->id_to_reference(*contId);
+ Engines::Container_var cont = Engines::Container::_narrow(o);
+ if(cont->is_SSL_mode())
+ {
+ mySIGNALSComponent = new SIGNALSComponentEngine_SSL(orb, poa, contId, instanceName, interfaceName);
+ }
+ else
+ {
+ mySIGNALSComponent = new SIGNALSComponentEngine_No_SSL(orb, poa, contId, instanceName, interfaceName);
+ }
return mySIGNALSComponent->getId() ;
}
}
PortableServer::POA_ptr poa,
PortableServer::ObjectId * contId,
const char *instanceName,
- const char *interfaceName);
+ const char *interfaceName, bool withRegistry);
virtual ~SIGNALSComponentEngine();
};
+class SIGNALSCOMPONENTENGINE_EXPORT SIGNALSComponentEngine_SSL : public SIGNALSComponentEngine
+{
+public:
+ SIGNALSComponentEngine_SSL( CORBA::ORB_ptr orb,
+ PortableServer::POA_ptr poa,
+ PortableServer::ObjectId * contId,
+ const char *instanceName,
+ const char *interfaceName):SIGNALSComponentEngine(orb,poa,contId,instanceName,interfaceName,false) { }
+};
+
+class SIGNALSCOMPONENTENGINE_EXPORT SIGNALSComponentEngine_No_SSL : public SIGNALSComponentEngine
+{
+public:
+ SIGNALSComponentEngine_No_SSL( CORBA::ORB_ptr orb,
+ PortableServer::POA_ptr poa,
+ PortableServer::ObjectId * contId,
+ const char *instanceName,
+ const char *interfaceName):SIGNALSComponentEngine(orb,poa,contId,instanceName,interfaceName,true) { }
+};
+
extern "C"
SIGNALSCOMPONENTENGINE_EXPORT
PortableServer::ObjectId * SIGNALSComponentEngine_factory
PortableServer::POA_ptr poa,
PortableServer::ObjectId * contId,
const char *instanceName,
- const char *interfaceName) :
- Engines_Component_i(orb, poa, contId, instanceName, interfaceName,1,true)
+ const char *interfaceName, bool withRegistry) :
+ Engines_Component_i(orb, poa, contId, instanceName, interfaceName,1,withRegistry)
{
MESSAGE("SIGNALSComponent_Impl::SIGNALSComponent_Impl activate object instanceName("
<< instanceName << ") interfaceName(" << interfaceName << ")" )
{
MESSAGE("SIGNALSComponentEngine_factory SIGNALSComponent_Impl("
<< instanceName << "," << interfaceName << ")");
- SIGNALSComponent_Impl * mySIGNALSComponent
- = new SIGNALSComponent_Impl(orb, poa, contId, instanceName, interfaceName);
+ SIGNALSComponent_Impl * mySIGNALSComponent = nullptr;
+ CORBA::Object_var o = poa->id_to_reference(*contId);
+ Engines::Container_var cont = Engines::Container::_narrow(o);
+ if(cont->is_SSL_mode())
+ {
+ mySIGNALSComponent = new SIGNALSComponentEngine_SSL(orb, poa, contId, instanceName, interfaceName);
+ }
+ else
+ {
+ mySIGNALSComponent = new SIGNALSComponentEngine_No_SSL(orb, poa, contId, instanceName, interfaceName);
+ }
return mySIGNALSComponent->getId() ;
}
}
PortableServer::POA_ptr poa,
PortableServer::ObjectId * contId,
const char *instanceName,
- const char *interfaceName);
+ const char *interfaceName, bool withRegistry);
virtual ~SIGNALSComponent_Impl();
};
+class SIGNALSCOMPONENTENGINE_EXPORT SIGNALSComponentEngine_SSL : public SIGNALSComponent_Impl
+{
+public:
+ SIGNALSComponentEngine_SSL( CORBA::ORB_ptr orb,
+ PortableServer::POA_ptr poa,
+ PortableServer::ObjectId * contId,
+ const char *instanceName,
+ const char *interfaceName):SIGNALSComponent_Impl(orb,poa,contId,instanceName,interfaceName,false) { }
+};
+
+class SIGNALSCOMPONENTENGINE_EXPORT SIGNALSComponentEngine_No_SSL : public SIGNALSComponent_Impl
+{
+public:
+ SIGNALSComponentEngine_No_SSL( CORBA::ORB_ptr orb,
+ PortableServer::POA_ptr poa,
+ PortableServer::ObjectId * contId,
+ const char *instanceName,
+ const char *interfaceName):SIGNALSComponent_Impl(orb,poa,contId,instanceName,interfaceName,true) { }
+};
+
extern "C"
SIGNALSCOMPONENTENGINE_EXPORT
PortableServer::ObjectId * SIGNALSComponentEngine_factory
PortableServer::POA_ptr poa,
PortableServer::ObjectId * contId,
const char *instanceName,
- const char *interfaceName) :
- Engines_Component_i(orb, poa, contId, instanceName, interfaceName,1,true)
+ const char *interfaceName, bool withRegistry) :
+ Engines_Component_i(orb, poa, contId, instanceName, interfaceName,1,withRegistry)
{
// MESSAGE("SubComponentEngine::SubComponentEngine activate object instanceName("
// << instanceName << ") interfaceName(" << interfaceName << ")" )
{
MESSAGE("SubComponentEngine_factory SubComponentEngine ("
<< instanceName << "," << interfaceName << ")");
- SubComponentEngine * mySubComponent
- = new SubComponentEngine(orb, poa, contId, instanceName, interfaceName);
+ SubComponentEngine * mySubComponent = nullptr;
+ CORBA::Object_var o = poa->id_to_reference(*contId);
+ Engines::Container_var cont = Engines::Container::_narrow(o);
+ if(cont->is_SSL_mode())
+ {
+ mySubComponent = new SubComponentEngine_SSL(orb, poa, contId, instanceName, interfaceName);
+ }
+ else
+ {
+ mySubComponent = new SubComponentEngine_No_SSL(orb, poa, contId, instanceName, interfaceName);
+ }
return mySubComponent->getId() ;
}
}
PortableServer::POA_ptr poa,
PortableServer::ObjectId * contId,
const char *instanceName,
- const char *interfaceName);
+ const char *interfaceName, bool withRegistry);
virtual ~SubComponentEngine();
};
+class SUBCOMPONENTENGINE_EXPORT SubComponentEngine_SSL : public SubComponentEngine
+{
+public:
+ SubComponentEngine_SSL(CORBA::ORB_ptr orb,
+ PortableServer::POA_ptr poa,
+ PortableServer::ObjectId * contId,
+ const char *instanceName,
+ const char *interfaceName):SubComponentEngine(orb,poa,contId,instanceName,interfaceName,false) { }
+};
+
+class SUBCOMPONENTENGINE_EXPORT SubComponentEngine_No_SSL : public SubComponentEngine
+{
+public:
+ SubComponentEngine_No_SSL(CORBA::ORB_ptr orb,
+ PortableServer::POA_ptr poa,
+ PortableServer::ObjectId * contId,
+ const char *instanceName,
+ const char *interfaceName):SubComponentEngine(orb,poa,contId,instanceName,interfaceName,true) { }
+};
+
extern "C"
SUBCOMPONENTENGINE_EXPORT
PortableServer::ObjectId * SubComponentEngine_factory
PortableServer::ObjectId * contId ,
const char *instanceName ,
const char *interfaceName ,
- const bool kactivate ) :
- Engines_Component_i(orb, poa, contId, instanceName, interfaceName,1,true) {
+ const bool kactivate , bool withRegistry ) :
+ Engines_Component_i(orb, poa, contId, instanceName, interfaceName,true/*notif is true here for message*/,withRegistry) {
MESSAGE("SyrComponent_Impl::SyrComponent_Impl this " << hex << this << dec
<< "activate object instanceName("
<< instanceName << ") interfaceName(" << interfaceName << ")" )
#else
Sleep(S*1000);
#endif
- Syr_Impl * mySyr ;
- mySyr = new Syr_Impl( _orb , _poa, _contId,
+ Syr_Impl * mySyr = nullptr;
+ if ( this->isSSLMode() )
+ {
+ mySyr = new Syr_Impl_SSL( _orb , _poa, _contId,
+ instanceName() , interfaceName() ,
+ graphName() , nodeName() , anOddInteger ) ;
+ }
+ else
+ {
+ mySyr = new Syr_Impl_No_SSL( _orb , _poa, _contId,
instanceName() , interfaceName() ,
graphName() , nodeName() , anOddInteger ) ;
+ }
SuperVisionTest::Syr_var iobject = (SuperVisionTest::Syr_var ) NULL ;
PortableServer::ObjectId * id = mySyr->getId() ;
CORBA::Object_var obj = _poa->id_to_reference(*id);
MESSAGE("SyrComponentEngine_factory SyrComponentEngine ("
<< instanceName << "," << interfaceName << "," << _getpid() << ")");
#endif
- SyrComponent_Impl * mySyrComponent
- = new SyrComponent_Impl(orb, poa, contId, instanceName, interfaceName);
+ SyrComponent_Impl * mySyrComponent = nullptr;
+ CORBA::Object_var o = poa->id_to_reference(*contId);
+ Engines::Container_var cont = Engines::Container::_narrow(o);
+ if(cont->is_SSL_mode())
+ {
+ mySyrComponent = new SyrComponent_Impl_SSL(orb, poa, contId, instanceName, interfaceName);
+ }
+ else
+ {
+ mySyrComponent = new SyrComponent_Impl_No_SSL(orb, poa, contId, instanceName, interfaceName);
+ }
return mySyrComponent->getId() ;
}
}
const char * interfaceName ,
const char * graphName ,
const char * nodeName ,
- const CORBA::Long anOddInteger ) :
- SyrComponent_Impl(orb, poa, contId, instanceName, interfaceName,false) {
+ const CORBA::Long anOddInteger, bool withRegistry) :
+ SyrComponent_Impl(orb, poa, contId, instanceName, interfaceName,false,withRegistry) {
Names( graphName , nodeName ) ;
MESSAGE("Syr_Impl::Syr_Impl activate object instanceName("
<< instanceName << ") interfaceName(" << interfaceName << ") --> "
PortableServer::ObjectId * contId ,
const char *instanceName ,
const char *interfaceName ,
- const bool kactivate = true ) ;
+ const bool kactivate, bool withRegistry ) ;
virtual ~SyrComponent_Impl();
long _Count ;
};
+class SYRCOMPONENTENGINE_EXPORT SyrComponent_Impl_No_SSL : public SyrComponent_Impl
+{
+public:
+ SyrComponent_Impl_No_SSL() { }
+ SyrComponent_Impl_No_SSL( CORBA::ORB_ptr orb ,
+ PortableServer::POA_ptr poa ,
+ PortableServer::ObjectId * contId ,
+ const char *instanceName , const char *interfaceName , const bool kactivate = true ):SyrComponent_Impl(orb,poa,contId,instanceName,interfaceName,kactivate,true) { }
+};
+
+class SYRCOMPONENTENGINE_EXPORT SyrComponent_Impl_SSL : public SyrComponent_Impl
+{
+public:
+ SyrComponent_Impl_SSL() { }
+ SyrComponent_Impl_SSL( CORBA::ORB_ptr orb ,
+ PortableServer::POA_ptr poa ,
+ PortableServer::ObjectId * contId ,
+ const char *instanceName , const char *interfaceName , const bool kactivate = true ):SyrComponent_Impl(orb,poa,contId,instanceName,interfaceName,kactivate,false) { }
+};
+
class SYRCOMPONENTENGINE_EXPORT ListOfSyr_Impl : public POA_SuperVisionTest::ListOfSyr ,
public Engines_Component_i {
public:
const char *interfaceName ,
const char * graphName ,
const char * nodeName ,
- const CORBA::Long anOddInteger );
+ const CORBA::Long anOddInteger, bool withRegistry);
virtual ~Syr_Impl();
};
+class SYRCOMPONENTENGINE_EXPORT Syr_Impl_SSL : public Syr_Impl
+{
+public:
+ Syr_Impl_SSL(CORBA::ORB_ptr orb ,
+ PortableServer::POA_ptr poa ,
+ PortableServer::ObjectId * contId ,
+ const char *instanceName ,
+ const char *interfaceName ,
+ const char * graphName ,
+ const char * nodeName ,
+ const CORBA::Long anOddInteger) : Syr_Impl(orb,poa,contId,instanceName,interfaceName,graphName,nodeName,anOddInteger,false) { }
+};
+
+class SYRCOMPONENTENGINE_EXPORT Syr_Impl_No_SSL : public Syr_Impl
+{
+public:
+ Syr_Impl_No_SSL(CORBA::ORB_ptr orb ,
+ PortableServer::POA_ptr poa ,
+ PortableServer::ObjectId * contId ,
+ const char *instanceName ,
+ const char *interfaceName ,
+ const char * graphName ,
+ const char * nodeName ,
+ const CORBA::Long anOddInteger) : Syr_Impl(orb,poa,contId,instanceName,interfaceName,graphName,nodeName,anOddInteger,true) { }
+};
+
#endif
PortableServer::ObjectId * contId ,
const char *instanceName ,
const char *interfaceName ,
- const bool kactivate ) :
- Engines_Component_i(orb, poa, contId, instanceName, interfaceName,1,true) {
+ const bool kactivate, bool withRegistry ) :
+ Engines_Component_i(orb, poa, contId, instanceName, interfaceName,1,withRegistry) {
MESSAGE("TypesCheck_Impl::TypesCheck_Impl this " << hex << this << dec
<< "activate object instanceName("
<< instanceName << ") interfaceName(" << interfaceName << ")" )
MESSAGE("TypesCheckEngine_factory TypesCheckEngine ("
<< instanceName << "," << interfaceName << "," << _getpid()<< ")");
#endif
-
- TypesCheck_Impl * myTypesCheck = new TypesCheck_Impl(orb, poa, contId, instanceName, interfaceName);
+ CORBA::Object_var o = poa->id_to_reference(*contId);
+ Engines::Container_var cont = Engines::Container::_narrow(o);
+ TypesCheck_Impl * myTypesCheck = nullptr;
+ if(cont->is_SSL_mode())
+ {
+ myTypesCheck = new TypesCheck_Impl_SSL(orb, poa, contId, instanceName, interfaceName);
+ }
+ else
+ {
+ myTypesCheck = new TypesCheck_Impl_No_SSL(orb, poa, contId, instanceName, interfaceName);
+ }
return myTypesCheck->getId() ;
}
}
PortableServer::ObjectId * contId ,
const char *instanceName ,
const char *interfaceName ,
- const bool kactivate = true ) ;
+ const bool kactivate, bool withRegistry ) ;
virtual ~TypesCheck_Impl();
};
+class TYPESCHECKENGINE_EXPORT TypesCheck_Impl_SSL : public TypesCheck_Impl {
+ public:
+ TypesCheck_Impl_SSL( CORBA::ORB_ptr orb ,
+ PortableServer::POA_ptr poa ,
+ PortableServer::ObjectId * contId ,
+ const char *instanceName ,
+ const char *interfaceName ,
+ const bool kactivate = true):TypesCheck_Impl(orb,poa,contId,instanceName,interfaceName,kactivate,false) { }
+};
+
+class TYPESCHECKENGINE_EXPORT TypesCheck_Impl_No_SSL : public TypesCheck_Impl {
+ public:
+ TypesCheck_Impl_No_SSL( CORBA::ORB_ptr orb ,
+ PortableServer::POA_ptr poa ,
+ PortableServer::ObjectId * contId ,
+ const char *instanceName ,
+ const char *interfaceName ,
+ const bool kactivate = true):TypesCheck_Impl(orb,poa,contId,instanceName,interfaceName,kactivate,true) { }
+};
+
extern "C"
TYPESCHECKENGINE_EXPORT
PortableServer::ObjectId * TypesCheckEngine_factory ( CORBA::ORB_ptr orb ,
PortableServer::POA_ptr poa,
PortableServer::ObjectId * contId,
const char *instanceName,
- const char *interfaceName) :
- Engines_Component_i(orb, poa, contId, instanceName, interfaceName,1,true)
+ const char *interfaceName, bool withRegistry) :
+ Engines_Component_i(orb, poa, contId, instanceName, interfaceName,1,withRegistry)
{
// MESSAGE("UndefinedSymbolComponentEngine::UndefinedSymbolComponentEngine activate object instanceName("
// << instanceName << ") interfaceName(" << interfaceName << ")" )
{
MESSAGE("UndefinedSymbolComponentEngine_factory UndefinedSymbolComponentEngine ("
<< instanceName << "," << interfaceName << ")");
- UndefinedSymbolComponentEngine * myUndefinedSymbolComponent
- = new UndefinedSymbolComponentEngine(orb, poa, contId, instanceName, interfaceName);
+ UndefinedSymbolComponentEngine * myUndefinedSymbolComponent = nullptr;
+ CORBA::Object_var o = poa->id_to_reference(*contId);
+ Engines::Container_var cont = Engines::Container::_narrow(o);
+ if(cont->is_SSL_mode())
+ {
+ myUndefinedSymbolComponent = new UndefinedSymbolComponentEngine_SSL(orb, poa, contId, instanceName, interfaceName);
+ }
+ else
+ {
+ myUndefinedSymbolComponent = new UndefinedSymbolComponentEngine_No_SSL(orb, poa, contId, instanceName, interfaceName);
+ }
return myUndefinedSymbolComponent->getId() ;
}
}
PortableServer::POA_ptr poa,
PortableServer::ObjectId * contId,
const char *instanceName,
- const char *interfaceName);
+ const char *interfaceName, bool withRegistry);
virtual ~UndefinedSymbolComponentEngine();
};
+class UndefinedSymbolComponentEngine_SSL : public UndefinedSymbolComponentEngine {
+public:
+ UndefinedSymbolComponentEngine_SSL( CORBA::ORB_ptr orb,
+ PortableServer::POA_ptr poa,
+ PortableServer::ObjectId * contId,
+ const char *instanceName,
+ const char *interfaceName):UndefinedSymbolComponentEngine(orb,poa,contId,instanceName,interfaceName,false) { }
+};
+
+class UndefinedSymbolComponentEngine_No_SSL : public UndefinedSymbolComponentEngine {
+public:
+ UndefinedSymbolComponentEngine_No_SSL( CORBA::ORB_ptr orb,
+ PortableServer::POA_ptr poa,
+ PortableServer::ObjectId * contId,
+ const char *instanceName,
+ const char *interfaceName):UndefinedSymbolComponentEngine(orb,poa,contId,instanceName,interfaceName,true) { }
+};
+
extern "C"
PortableServer::ObjectId * UndefinedSymbolComponentEngine_factory
( CORBA::ORB_ptr orb ,