public Swarm start ( ) throws Exception { INSTANCE = this ; try ( AutoCloseable handle = Performance . time ( "Thorntail.start()" ) ) { Module module = Module . getBootModuleLoader ( ) . loadModule ( CONTAINER_MODULE_NAME ) ; Class < ? > bootstrapClass = module . getClassLoader ( ) . loadClass ( "org.wildfly.swarm.container.runtime.ServerBootstrapImpl" ) ; ServerBootstrap bootstrap = ( ServerBootstrap ) bootstrapClass . newInstance ( ) ; bootstrap . withArguments ( this . args ) . withBootstrapDebug ( this . debugBootstrap ) . withExplicitlyInstalledFractions ( this . explicitlyInstalledFractions ) . withSocketBindings ( this . socketBindings ) . withOutboundSocketBindings ( this . outboundSocketBindings ) . withUserComponents ( this . userComponentClasses ) . withXmlConfig ( this . xmlConfig ) . withConfigView ( this . configView . get ( true ) ) ; this . server = bootstrap . bootstrap ( ) ; return this ; } }
Start the container .