public CommunicationGroupDriver getNewInstance ( final Class < ? extends Name < String > > groupName , final Class < ? extends Topology > topologyClass , final int numberOfTasks , final int customFanOut ) throws InjectionException { final Injector newInjector = injector . forkInjector ( ) ; newInjector . bindVolatileParameter ( CommGroupNameClass . class , groupName ) ; newInjector . bindVolatileParameter ( TopologyClass . class , topologyClass ) ; newInjector . bindVolatileParameter ( CommGroupNumTask . class , numberOfTasks ) ; newInjector . bindVolatileParameter ( TreeTopologyFanOut . class , customFanOut ) ; return newInjector . getInstance ( CommunicationGroupDriver . class ) ; }
Instantiates a new CommunicationGroupDriver instance .