@Override public void createConnectionFactory(String name,boolean ha,boolean useDiscovery,int cfType,String[] connectorNames,Object[] bindings) throws Exception {
  checkStarted();
  clearIO();
  try {
    if (useDiscovery) {
      if (connectorNames == null || connectorNames.length == 0) {
        throw new IllegalArgumentException("no discovery group name supplied");
      }
      server.createConnectionFactory(name,ha,JMSFactoryType.valueOf(cfType),connectorNames[0],JMSServerControlImpl.convert(bindings));
    }
 else {
      List<String> connectorList=new ArrayList<>(connectorNames.length);
      for (      String str : connectorNames) {
        connectorList.add(str);
      }
      server.createConnectionFactory(name,ha,JMSFactoryType.valueOf(cfType),connectorList,JMSServerControlImpl.convert(bindings));
    }
  }
  finally {
    blockOnIO();
  }
}

@ Override public void createConnectionFactory ( String name , boolean ha , boolean useDiscovery , int cfType , String [ ] connectorNames , Object [ ] bindings ) throws Exception { checkStarted ( ) ; clearIO ( ) ; try { if ( useDiscovery ) { if ( connectorNames == null || connectorNames . length == 0 ) { throw new IllegalArgumentException ( "no discovery group name supplied" ) ; } server . createConnectionFactory ( name , ha , JMSFactoryType . valueOf ( cfType ) , connectorNames [ 0 ] , JMSServerControlImpl . convert ( bindings ) ) ; } else { List < String > connectorList = new ArrayList < > ( connectorNames . length ) ; for ( String str : connectorNames ) { connectorList . add ( str ) ; } server . createConnectionFactory ( name , ha , JMSFactoryType . valueOf ( cfType ) , connectorList , JMSServerControlImpl . convert ( bindings ) ) ; } } finally { blockOnIO ( ) ; } }
see the interface definition for the javadoc .
