betfair / cougar

Cougar is a framework for making building network exposed service interfaces easy.
http://betfair.github.io/cougar
Apache License 2.0
27 stars 18 forks source link

Use ProtocolRegistry and stop Protocol being an enum #83

Open eswdd opened 9 years ago

eswdd commented 9 years ago

Whilst implementing #82 I realised that Protocol is still an enum, which makes it rather hard to add new protocols. As part of the work for that I introduced a new registry (ProtocolRegistry) in order to be able to find protocols by paradigm. This class needs fleshing out and to be used by transports/protocols as they initialise.