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.
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.