private static void initializeExports(List<ModuleCapability> exports, BundleLoaderSources sources, Collection<String> exportNames) { if (exports != null) { for (ModuleCapability export : exports) { String name = (String) export.getAttributes().get(PackageNamespace.PACKAGE_NAMESPACE); if (sources.forceSourceCreation(export)) { if (!exportNames.contains(name)) { // must force filtered and reexport sources to be created early // to prevent lazy normal package source creation. // We only do this for the first export of a package name. sources.createPackageSource(export, true); } } exportNames.add(name); } } }
private static void initializeExports(List<ModuleCapability> exports, BundleLoaderSources sources, Collection<String> exportNames) { if (exports != null) { for (ModuleCapability export : exports) { String name = (String) export.getAttributes().get(PackageNamespace.PACKAGE_NAMESPACE); if (sources.forceSourceCreation(export)) { if (!exportNames.contains(name)) { // must force filtered and reexport sources to be created early // to prevent lazy normal package source creation. // We only do this for the first export of a package name. sources.createPackageSource(export, true); } } exportNames.add(name); } } }
private static void initializeExports(List<ModuleCapability> exports, BundleLoaderSources sources, Collection<String> exportNames) { if (exports != null) { for (ModuleCapability export : exports) { String name = (String) export.getAttributes().get(PackageNamespace.PACKAGE_NAMESPACE); if (sources.forceSourceCreation(export)) { if (!exportNames.contains(name)) { // must force filtered and reexport sources to be created early // to prevent lazy normal package source creation. // We only do this for the first export of a package name. sources.createPackageSource(export, true); } } exportNames.add(name); } } }
private static void initializeExports(List<ModuleCapability> exports, BundleLoaderSources sources, Collection<String> exportNames) { if (exports != null) { for (ModuleCapability export : exports) { String name = (String) export.getAttributes().get(PackageNamespace.PACKAGE_NAMESPACE); if (sources.forceSourceCreation(export)) { if (!exportNames.contains(name)) { // must force filtered and reexport sources to be created early // to prevent lazy normal package source creation. // We only do this for the first export of a package name. sources.createPackageSource(export, true); } } exportNames.add(name); } } }
private static void initializeExports(List<ModuleCapability> exports, BundleLoaderSources sources, Collection<String> exportNames) { if (exports != null) { for (ModuleCapability export : exports) { String name = (String) export.getAttributes().get(PackageNamespace.PACKAGE_NAMESPACE); if (sources.forceSourceCreation(export)) { if (!exportNames.contains(name)) { // must force filtered and reexport sources to be created early // to prevent lazy normal package source creation. // We only do this for the first export of a package name. sources.createPackageSource(export, true); } } exportNames.add(name); } } }
private static void initializeExports(List<ModuleCapability> exports, BundleLoaderSources sources, Collection<String> exportNames) { if (exports != null) { for (ModuleCapability export : exports) { String name = (String) export.getAttributes().get(PackageNamespace.PACKAGE_NAMESPACE); if (sources.forceSourceCreation(export)) { if (!exportNames.contains(name)) { // must force filtered and reexport sources to be created early // to prevent lazy normal package source creation. // We only do this for the first export of a package name. sources.createPackageSource(export, true); } } exportNames.add(name); } } }