public static HostController createHostController ( String jbossHomePath , String modulePath , String [ ] systemPackages , String [ ] cmdargs ) { if ( jbossHomePath == null || jbossHomePath . isEmpty ( ) ) { throw EmbeddedLogger . ROOT_LOGGER . invalidJBossHome ( jbossHomePath ) ; } File jbossHomeDir = new File ( jbossHomePath ) ; if ( ! jbossHomeDir . isDirectory ( ) ) { throw EmbeddedLogger . ROOT_LOGGER . invalidJBossHome ( jbossHomePath ) ; } return createHostController ( Configuration . Builder . of ( jbossHomeDir ) . setModulePath ( modulePath ) . setSystemPackages ( systemPackages ) . setCommandArguments ( cmdargs ) . build ( ) ) ; }
Create an embedded host controller .