List of usage examples for java.net DatagramSocket setDatagramSocketImplFactory
public static synchronized void setDatagramSocketImplFactory(DatagramSocketImplFactory fac) throws IOException
From source file:org.jboss.as.capedwarf.extension.CapedwarfSubsystemAdd.java
protected static void registerSocketFactory() throws OperationFailedException { try {//from w ww .ja va 2s . c o m Socket.setSocketImplFactory(CapedwarfSocketFactory.INSTANCE); DatagramSocket.setDatagramSocketImplFactory(CapedwarfSocketFactory.INSTANCE); } catch (IOException e) { throw new OperationFailedException(e.getMessage(), e); } }