benedekh / WeLoveClouds

Repository for submissions on the CloudDB course.
0 stars 1 forks source link

Ssl server socket bad design #239

Closed banctilrobitaille closed 7 years ago

banctilrobitaille commented 7 years ago

Would be better to use an interface that provide a unique createServerSocketFromPort method and have 2 strategies that we could bind with guice. Right now if we want to remove the ssl socket creation we have to find where we create socket in the code and change the method manually => bad design.