2014-01-06 19:19:17 +00:00
|
|
|
#include "session/SessionManagerFactory.hpp"
|
|
|
|
#include "session/SessionManagerImpl.hpp"
|
2014-01-16 04:42:18 +00:00
|
|
|
#include "session/ACSession.hpp"
|
|
|
|
|
|
|
|
extern int tkScenario;
|
2014-01-06 19:19:17 +00:00
|
|
|
|
|
|
|
using namespace std;
|
|
|
|
|
|
|
|
#if 0
|
|
|
|
SessionManager*
|
|
|
|
SessionManagerFactory::newInstance(const std::string& propertiesFile)
|
|
|
|
throw (ConfigurationException, EPPIOException)
|
|
|
|
{
|
|
|
|
auto_ptr<SessionManagerProperties> properties(new SessionManagerProperties(propertiesFile));
|
|
|
|
properties->load();
|
|
|
|
return newInstance(properties.release());
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
SessionManager*
|
|
|
|
SessionManagerFactory::newInstance(SessionManagerProperties* properties)
|
|
|
|
throw (ConfigurationException)
|
|
|
|
{
|
2014-01-16 15:35:39 +00:00
|
|
|
if (tkScenario < ACTK_OTEB)
|
|
|
|
return new SessionManagerImpl(properties);
|
|
|
|
else
|
|
|
|
return new ACSession(properties);
|
2014-01-06 19:19:17 +00:00
|
|
|
}
|