/** * Load the layers based on the default setup. * * @param jbossHome the jboss home directory * @param productConfig the product config * @param repoRoots the repository roots * @return the available layers * @throws IOException */ public static InstalledIdentity load(final File jbossHome, final ProductConfig productConfig, final File... repoRoots) throws IOException { final InstalledImage installedImage = installedImage(jbossHome); return load(installedImage, productConfig, Arrays.<File>asList(repoRoots), Collections.<File>emptyList()); }
/** * Load the layers based on the default setup. * * @param jbossHome the jboss home directory * @param productConfig the product config * @param repoRoots the repository roots * @return the available layers * @throws IOException */ public static InstalledIdentity load(final File jbossHome, final ProductConfig productConfig, final File... repoRoots) throws IOException { final InstalledImage installedImage = installedImage(jbossHome); return load(installedImage, productConfig, Arrays.<File>asList(repoRoots), Collections.<File>emptyList()); }
/** * 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); }
protected static InstallationManager load(final File jbossHome, final ProductConfig productConfig) throws IOException { final InstalledImage installedImage = InstalledIdentity.installedImage(jbossHome); final List<File> moduleRoots = getModulePath(installedImage); final List<File> bundlesRoots = getBundlePath(installedImage); return InstallationManager.load(jbossHome, moduleRoots, bundlesRoots, productConfig); }
protected static InstallationManager load(final File jbossHome, final ProductConfig productConfig) throws IOException { final InstalledImage installedImage = InstalledIdentity.installedImage(jbossHome); final List<File> moduleRoots = getModulePath(installedImage); final List<File> bundlesRoots = getBundlePath(installedImage); return InstallationManager.load(jbossHome, moduleRoots, bundlesRoots, productConfig); }