/** * Returns a copy of the environment's default socket factory. */ public static synchronized ServerSocketFactory getDefault() { if (theFactory == null) { theFactory = new DefaultServerSocketFactory(); } try { return (ServerSocketFactory) theFactory.clone(); } catch (CloneNotSupportedException e) { throw new RuntimeException(e.getMessage()); } } }
/** * Returns a copy of the environment's default socket factory. */ public static synchronized ServerSocketFactory getDefault() { if (theFactory == null) { theFactory = new DefaultServerSocketFactory(); } try { return (ServerSocketFactory) theFactory.clone(); } catch (CloneNotSupportedException e) { throw new RuntimeException(e.getMessage()); } } }