Class SocketFactory

Object
com.tailf.conf.SocketFactory

public class SocketFactory extends Object
Class for creation and control of sockets. This singleton factory class control all socket connections. It is possible to register a socket factory callback. If such a factory is registered all socket connect calls will be dispatched to this callback. The callback is registered with the SocketFactory.registerCallback(...) method. For Confd this is the preferred way. In NCS which connects its control sockets before any package is instantiated there exist instead a system property TAILF_SOCKET_FACTORY_CB which should be set to the callback class e.g like: java -DTAILF_SOCKET_FACTORY_CB=com.example.myfactory ... This class must exist in the classpath so that it can be found by NcsMain.