Tasks #261
Tasks #240: Refactor C++ Implementation to 2011-04-13 Domain Model
Dynamic connector creation
Status: | Resolved | Start date: | 04/27/2011 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | J. Moringen | % Done: | 100% | |
Category: | C++ | |||
Target version: | - |
Description
- Use rsc::patterns::Factory for transport::Factory
- split transport::Factory into InFactory and OutFactory
- Register default connectors statically
- maybe in rsb::Factory
Related issues
Associated revisions
Static constructor in src/rsb/transport/spread/SpreadConnector.{h,cpp}
refs #261
refs #261
- src/rsb/transport/spread/SpreadConnection.{h,cpp}: added free
functions defaultHost, defaultPort; these use the Configuration
object; changed type of port member to unsigned int; removed no-args
constructor in favor of default values for remaining constructor - src/rsb/transport/spread/SpreadConnector.{h,cpp}: added static
constructor function SpreadConnector::create for property-based
construction; removed dependency on Configuration since it is only
used in SpreadConnection
Added RSC-based In/Out factories in src/rsb/transport/Factory.{h,cpp}
refs #261
refs #261
- src/rsb/transport/Factory.{h,cpp}: added InFactory and OutFactory
based on rsc::patterns::Factory; move inclusion of transport
implementation headers Factory.h -> Factory.cpp
Registration of transport implementation; switch to new factory infrastructure
refs #261
refs #261
- src/CMakeLists.txt: added files src/rsb/transport/transports.{h,cpp}
- src/rsb/Factory.cpp: call registerDefaultTransports
- src/rsb/transport/Factory.{h,cpp}: interface is unchanged but actual
work is now done by the new factory infrastructure - src/rsb/transport/transports.{h,cpp}: new file; contain
registerDefaultTransports which registers the spread and inprocess
connectors
Consistently use strings to designate connector implementations
fixes #261
fixes #261
- src/rsb/Informer.h: connector implementations are now designated by
strings - src/rsb/Listener.{h,cpp}: connector implementations are now
designated by strings - src/rsb/eventprocessing/Router.{h,cpp}: connector implementations
are now designated by strings - src/rsb/transport/Factory.h: removed remaining traces of former
transport Factory class - test/rsb/RSBTest.cpp: connector implementations are now designated
by strings
History
#1 Updated by J. Moringen about 13 years ago
- Status changed from New to In Progress
- Assignee changed from S. Wrede to J. Moringen
- % Done changed from 0 to 20
#2 Updated by J. Moringen about 13 years ago
- % Done changed from 20 to 80
#3 Updated by J. Moringen almost 13 years ago
- Status changed from In Progress to Resolved
- % Done changed from 80 to 100
Applied in changeset r682.