| 233 | typedef typename ServiceTraits_::Handler Handler; |
| 234 | |
| 235 | ServiceState() |
| 236 | : port_(0), |
| 237 | log_(new EventLog), |
| 238 | handler_(new Handler(log_)), |
| 239 | processor_(new Processor(handler_)), |
| 240 | transportFactory_(new TransportFactory_), |
| 241 | protocolFactory_(new typename ServiceTraits_::ProtocolFactory), |
| 242 | serverEventHandler_(new ServerEventHandler(log_)), |
| 243 | processorEventHandler_(new ProcessorEventHandler(log_)) { |
| 244 | processor_->setEventHandler(processorEventHandler_); |
| 245 | } |
| 246 | |
| 247 | std::shared_ptr<TServer> createServer(uint16_t port) override { |
| 248 | ServerTraits_ serverTraits; |
nothing calls this directly
no test coverage detected