Made connection factory class extendable

Removed 'final' keyword from class declaration and changed private properties to protected.