/** * Load the default installation manager implementation. * * @param jbossHome the jboss home directory * @param moduleRoots the module roots * @param bundlesRoots the bundle roots * @param productConfig the product config * @return the installation manager implementation * @throws IOException */ public static InstallationManager load(final File jbossHome, final List<File> moduleRoots, final List<File> bundlesRoots, final ProductConfig productConfig) throws IOException { final InstalledImage installedImage = InstalledIdentity.installedImage(jbossHome); return new InstallationManagerImpl(installedImage, moduleRoots, bundlesRoots, productConfig); }
/** * Load the default installation manager implementation. * * @param jbossHome the jboss home directory * @param moduleRoots the module roots * @param bundlesRoots the bundle roots * @param productConfig the product config * @return the installation manager implementation * @throws IOException */ public static InstallationManager load(final File jbossHome, final List<File> moduleRoots, final List<File> bundlesRoots, final ProductConfig productConfig) throws IOException { final InstalledImage installedImage = InstalledIdentity.installedImage(jbossHome); return new InstallationManagerImpl(installedImage, moduleRoots, bundlesRoots, productConfig); }
private InstallationManager loadInstallationManager() throws IOException { List<File> moduleRoots = new ArrayList<File>(); moduleRoots.add(env.getInstalledImage().getModulesDir()); List<File> bundleRoots = new ArrayList<File>(); bundleRoots.add(env.getInstalledImage().getBundlesDir()); return new InstallationManagerImpl(env.getInstalledImage(), moduleRoots, bundleRoots, productConfig); }